From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- .../scanssh/files/scanssh-2.0-fix-warnings.diff | 61 ++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 net-analyzer/scanssh/files/scanssh-2.0-fix-warnings.diff (limited to 'net-analyzer/scanssh/files') diff --git a/net-analyzer/scanssh/files/scanssh-2.0-fix-warnings.diff b/net-analyzer/scanssh/files/scanssh-2.0-fix-warnings.diff new file mode 100644 index 000000000000..0ced6821efa9 --- /dev/null +++ b/net-analyzer/scanssh/files/scanssh-2.0-fix-warnings.diff @@ -0,0 +1,61 @@ +--- a/arc4random.c ++++ b/arc4random.c +@@ -1,5 +1,6 @@ + #include + #include ++#include + + #include "config.h" + +--- a/interface.c ++++ b/interface.c +@@ -56,6 +56,13 @@ + + #include "interface.h" + ++#ifndef HAVE_STRLCPY ++ size_t strlcpy(char *, const char *, size_t); ++#endif ++#ifndef HAVE_STRLCAT ++ size_t strlcat(char *, const char *, size_t); ++#endif ++ + /* Prototypes */ + static int pcap_dloff(pcap_t *); + +--- a/md5.c ++++ b/md5.c +@@ -23,6 +23,7 @@ + copyright in any changes I have made; this code remains in the + public domain. */ + ++#include + #include + + #ifdef HAVE_CONFIG_H +--- a/scanssh.c ++++ b/scanssh.c +@@ -78,6 +78,10 @@ + #define DNFPRINTF(y, x) + #endif + ++#ifndef HAVE_STRLCPY ++ size_t strlcpy(char *, const char *, size_t); ++#endif ++ + struct address_node { + TAILQ_ENTRY (address_node) an_next; + +--- a/xmalloc.c ++++ b/xmalloc.c +@@ -20,6 +20,10 @@ + + #include "config.h" + ++#ifndef HAVE_STRLCPY ++ size_t strlcpy(char *, const char *, size_t); ++#endif ++ + void * + xmalloc(size_t size) + { -- cgit v1.2.3