From 560c3078a267674e487703a50c90bc177e95e731 Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Sun, 28 Jul 2013 23:39:40 +0200 Subject: [PATCH] clarify inet_ntop error (it is fatal!) --- hmland.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hmland.c b/hmland.c index 32a1cdf..f3b7cf9 100644 --- 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; } } -- 2.39.2