1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
samba-mirror/lib/tsocket
Andrew Tridgell 0212800de8 tsocket: we return -1 on error, not fd
the code used this pattent:

 if (fd < 0) {
   ...various cleanups...
   return fd;
 } 

it is much clearer to do this:

 if (fd < 0) {
   ...various cleanups...
   return -1;
 } 

as otherwise when reading the code you think this function may return
a fd.

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-15 15:39:36 +10:00
..
config.mk tsocket: fix dependecies 2009-05-01 17:38:22 +02:00
doxy.config tsocket: Added doxygen config file. 2010-01-11 11:23:04 +01:00
tsocket_bsd.c tsocket: we return -1 on error, not fd 2010-09-15 15:39:36 +10:00
tsocket_guide.txt Revert "lib/tsocket: sa_socklen is a macro on irix, so better use sasocklen" 2010-08-28 08:28:01 +02:00
tsocket_helpers.c tsocket: Added complete doxygen documentation. 2010-01-11 11:22:59 +01:00
tsocket_internal.h tsocket: Fixed typo in LGPL header. 2009-12-15 23:34:22 +01:00
tsocket.c tsocket: Fix some unreachable code 2010-07-11 18:14:33 +02:00
tsocket.h Revert "lib/tsocket: sa_socklen is a macro on irix, so better use sasocklen" 2010-08-28 08:28:01 +02:00
wscript_build s4-waf: inline LIBREPLACE_NETWORK into 'replace' 2010-04-12 09:13:43 +02:00