clarify inet_ntop error (it is fatal!)
authorMichael Gernoth <michael@gernoth.net>
Sun, 28 Jul 2013 21:39:40 +0000 (23:39 +0200)
committerMichael Gernoth <michael@gernoth.net>
Sun, 28 Jul 2013 21:39:40 +0000 (23:39 +0200)
hmland.c

index 32a1cdf..f3b7cf9 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