git.samba.org
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
70ed474
)
Oops, getaddrinfo returns an error code (not -1) for error. -Wall is
author
Martin Pool
<mbp@samba.org>
Tue, 15 Jan 2002 10:04:11 +0000
(10:04 +0000)
committer
Martin Pool
<mbp@samba.org>
Tue, 15 Jan 2002 10:04:11 +0000
(10:04 +0000)
good.
socket.c
patch
|
blob
|
history
diff --git
a/socket.c
b/socket.c
index 520c3d5c45eb9e91aa77a39746e963c789aba8a8..57d895d81d614abbf161f1d166a21e23601ddefb 100644
(file)
--- a/
socket.c
+++ b/
socket.c
@@
-110,7
+110,7
@@
int try_bind_local(int s,
bhints.ai_family = ai_family;
bhints.ai_socktype = ai_socktype;
bhints.ai_flags = AI_PASSIVE;
- if (
getaddrinfo(bind_address, NULL, &bhints, &bres_all) == -1
) {
+ if (
(error = getaddrinfo(bind_address, NULL, &bhints, &bres_all))
) {
rprintf(FERROR, RSYNC_NAME ": getaddrinfo %s: %s\n",
bind_address, gai_strerror(error));
return -1;