Ticket #10396: 0010-netcat-Add-missing-declaration.patch

File 0010-netcat-Add-missing-declaration.patch, 1.0 KB (added by js, 6 years ago)
  • src/bin/network/netcat/netcat.c

    From 1ab4d13a95708a50fc82fc79523276264a0d49ca Mon Sep 17 00:00:00 2001
    From: Jonathan Schleifer <js@webkeks.org>
    Date: Fri, 10 Jan 2014 21:06:54 +0100
    Subject: [PATCH 10/10] netcat: Add missing declaration.
    
    ---
     src/bin/network/netcat/netcat.c | 6 ++++++
     1 file changed, 6 insertions(+)
    
    diff --git a/src/bin/network/netcat/netcat.c b/src/bin/network/netcat/netcat.c
    index e46fad2..8de7ecc 100644
    a b USHORT o_zero = 0;  
    175175/* support routines -- the bulk of this thing.  Placed in such an order that
    176176   we don't have to forward-declare anything: */
    177177
     178#ifdef HAVE_HELP
     179void helpme();
     180#endif
     181
     182
    178183/* holler :
    179184   fake varargs -- need to do this way because we wind up calling through
    180185   more levels of indirection than vanilla varargs can handle, and not all
    Debug (("wrote %d to net, errno %d", rr, errno))  
    13121317  return (0);
    13131318} /* readwrite */
    13141319
     1320
    13151321/* main :
    13161322   now we pull it all together... */
    13171323main (argc, argv)