]> git.meshlink.io Git - meshlink/commit
Remove errno and errstr from meshlink_handle_t, add thread-local meshlink_errno.
authorGuus Sliepen <guus@sliepen.org>
Tue, 29 Jul 2014 14:51:11 +0000 (16:51 +0200)
committerGuus Sliepen <guus@sliepen.org>
Tue, 29 Jul 2014 14:51:11 +0000 (16:51 +0200)
commit0754f0dda52c1b6870732be98b7697be5f4ba9cd
tree41c255d47b2342dcb6597113af24efa9a5f65d86
parent472552e949bea9fedf099491bfaf2925701022da
Remove errno and errstr from meshlink_handle_t, add thread-local meshlink_errno.

Errors can happen outside of the context of a meshlink handle, for example
if meshlink_open() itself fails. Furthermore, errstr can always be derived
from errno, so it is redundant.
examples/chat.c
examples/chatpp.cc
src/meshlink++.h
src/meshlink.c
src/meshlink.h