File: implicit-int.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 (29 lines) | stat: -rw-r--r-- 874 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
Author: Andreas Beckmann <anbe@debian.org>
Description: fix building with -Werror=implicit-int

--- a/netcat.c
+++ b/netcat.c
@@ -609,6 +609,7 @@ int doexec_use_sh = 0;			/* `-c' or `-e'
    that would be security-critical, which is why it's ifdefed out by default.
    Use at your own hairy risk; if you leave shells lying around behind open
    listening ports you deserve to lose!! */
+int
 doexec (fd)
   int fd;
 {
@@ -1032,6 +1033,7 @@ dol_err:
    Use the time delay between writes if given, otherwise use the "tcp ping"
    trick for getting the RTT.  [I got that idea from pluvius, and warped it.]
    Return either the original fd, or clean up and return -1. */
+int
 udptest (fd, where)
   int fd;
   IA * where;
@@ -1421,6 +1423,7 @@ char * unescape(start)
 
 /* main :
    now we pull it all together... */
+int
 main (argc, argv)
   int argc;
   char ** argv;