author | Alex Riesen <raa.lkml@gmail.com> | |
Tue, 12 Jun 2007 20:52:10 +0000 (22:52 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 16 Jun 2007 16:11:58 +0000 (09:11 -0700) | ||
commit | 7cbf2f24ee8430fbf48a2c6f106f22adf9df62e1 | |
tree | c03badff95c43da77fb12f395fbb2c98f5d15633 | tree | snapshot |
parent | 3e48af387522bfff8ae410cfda28c3eefd1cebad | commit | diff |
Do not use h_errno after connect(2): the function does not set it
Randal L. Schwartz noticed compilation problems on SunOS, which made
me look at the code again. The thing is, h_errno is not used by
connect(2), it is only for functions from netdb.h, like gethostbyname.
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Randal L. Schwartz noticed compilation problems on SunOS, which made
me look at the code again. The thing is, h_errno is not used by
connect(2), it is only for functions from netdb.h, like gethostbyname.
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
connect.c | diff | blob | history |