]> git.zerfleddert.de Git - hmcfgusb/commitdiff
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 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