tChanging the fallback error to something meaningful. - geomyidae - A small C-based gopherd. (gopher://bitreich.org/1/scm/geomyidae)
git clone git://r-36.net/geomyidae
Log
Files
Refs
README
LICENSE
---
commit fc1097d34bbf1c47b7f33275a8657d6d920e3a6a
parent 4d89b560595076c8994896195fbcd196460987dc
Author: Christoph Lohmann <20h@r-36.net>
Date:   Thu, 30 Aug 2018 21:32:06 +0200

Changing the fallback error to something meaningful.

Thanks to Evil_Bob I found this out.

Diffstat:
  main.c                              |       3 ++-

1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/main.c b/main.c
t@@ -506,7 +506,8 @@ main(int argc, char *argv[])
                 }
         }
         if (listfd < 0) {
-                perror("You did not specify a TCP port.");
+                fprintf(stderr, "Unable to got a binding socket. "
+                                "Look at bindip and the tcp port.\n");
                 return 1;
         }