[hackers] [sic][PATCH] fix: undefined macros, usage and useless newline

From: Jan Klemkow <j.klemkow_AT_wemelug.de>
Date: Sun, 6 Aug 2017 10:01:26 +0200

Without sys/select.h the FD_SET macro and others are undefined.
Manpage and usage now says -k pass.
---
 sic.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/sic.c b/sic.c
index ecefaf2..7d9c677 100644
--- a/sic.c
+++ b/sic.c
_AT_@ -1,4 +1,6 @@
  /* See LICENSE file for license details. */
+#include <sys/select.h>
+
 #include <ctype.h>
 #include <errno.h>
 #include <stdarg.h>
_AT_@ -137,10 +139,9 @@ parsesrv(char *cmd) {
 	}
 }
 
-
 static void
 usage(void) {
-	eprint("usage: sic [-h host] [-p port] [-n nick] [-k keyword] [-v]\n", argv0);
+	eprint("usage: %s [-h host] [-p port] [-n nick] [-k pass] [-v]\n", argv0);
 }
 
 int
-- 
2.13.4
Received on Sun Aug 06 2017 - 10:01:26 CEST

This archive was generated by hypermail 2.3.0 : Sun Aug 06 2017 - 10:12:41 CEST