File: missing-prototypes.patch

package info (click to toggle)
netcat 1.10-50.1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,884 kB
  • sloc: ansic: 1,835; sh: 796; makefile: 81
file content (31 lines) | stat: -rw-r--r-- 845 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Author: Andreas Beckmann <anbe@debian.org>
Description: fix building with -Werror=implicit-function-declaration

--- a/netcat.c
+++ b/netcat.c
@@ -68,6 +68,7 @@
 #endif
 
 /* includes: */
+#include <time.h>		/* time */
 #include <sys/time.h>		/* timeval, time_t */
 #include <setjmp.h>		/* jmp_buf et al */
 #include <sys/socket.h>		/* basics, SO_ and AF_ defs, sockaddr, ... */
@@ -86,6 +87,8 @@
 #include <unistd.h>
 #endif
 
+void helpme(void);
+
 /* handy stuff: */
 #define SA struct sockaddr	/* socket overgeneralization braindeath */
 #define SAI struct sockaddr_in	/* ... whoever came up with this model */
@@ -1798,7 +1801,7 @@ Debug (("netfd %d from port %d to port %
 #ifdef HAVE_HELP		/* unless we wanna be *really* cryptic */
 /* helpme :
    the obvious */
-helpme()
+void helpme(void)
 {
   o_verbose = 1;
 #ifndef DEBIAN_VERSION