From 5b612570220e66ea3197b88b5f9d81e064f9e873 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Sat, 17 Jun 2017 22:15:06 +0200 Subject: [PATCH 2/7] Do not warn about interface socket not binded --- lib/interface.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/interface.c b/lib/interface.c index e8ab2b8..94e554b 100644 --- a/lib/interface.c +++ b/lib/interface.c @@ -173,12 +173,10 @@ static int if_readconf(void) (as of 2.1.128) */ skfd = get_socket_for_af(AF_INET); if (skfd < 0) { - fprintf(stderr, _("warning: no inet socket available: %s\n"), - strerror(errno)); - /* Try to soldier on with whatever socket we can get hold of. */ - skfd = sockets_open(0); - if (skfd < 0) - return -1; + /* Try to soldier on with whatever socket we can get hold of. */ + skfd = sockets_open(0); + if (skfd < 0) + return -1; } ifc.ifc_buf = NULL; -- 2.13.1