From fc5f93604e0487804d0564efb8ba1b3c996f2bd4 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 21 Apr 2019 19:08:56 +0200 Subject: [PATCH] gluon-neighbour-info: fix inet_pton() error message inet_pton() doesn't set errno on regular parse errors, so using perror() doesn't make sense (and we avoid a confusing "Success" message). --- package/gluon-neighbour-info/src/gluon-neighbour-info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/gluon-neighbour-info/src/gluon-neighbour-info.c b/package/gluon-neighbour-info/src/gluon-neighbour-info.c index 808a1b12..c8a6b843 100644 --- a/package/gluon-neighbour-info/src/gluon-neighbour-info.c +++ b/package/gluon-neighbour-info/src/gluon-neighbour-info.c @@ -162,7 +162,7 @@ int main(int argc, char **argv) { break; case 'd': if (!inet_pton(AF_INET6, optarg, &client_addr.sin6_addr)) { - perror("Invalid IPv6 address. This message will probably confuse you"); + fprintf(stderr, "Invalid destination address\n"); exit(EXIT_FAILURE); } break;