projects
/
hmcfgusb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37c97e6
)
clarify inet_ntop error (it is fatal!)
author
Michael Gernoth
<michael@gernoth.net>
Sun, 28 Jul 2013 21:39:40 +0000
(23:39 +0200)
committer
Michael Gernoth
<michael@gernoth.net>
Sun, 28 Jul 2013 21:39:40 +0000
(23:39 +0200)
hmland.c
patch
|
blob
|
blame
|
history
diff --git
a/hmland.c
b/hmland.c
index 32a1cdf16cbf8c13a7f77bd4fa4037cb19eb60a5..f3b7cf965df00e66f2c2cdfba805bb5f79462a12 100644
(file)
--- a/
hmland.c
+++ b/
hmland.c
@@
-610,7
+610,7
@@
static int socket_server(char *iface, int port, int flags)
sin.sin_addr.s_addr = htonl(INADDR_ANY);
} else {
if (inet_pton(AF_INET, iface, &(sin.sin_addr.s_addr)) != 1) {
-
perror("inet_ntop"
);
+
fprintf(stderr, "Can't convert IP %s, aborting!\n", iface
);
return EXIT_FAILURE;
}
}
Impressum
,
Datenschutz