diff options
Diffstat (limited to 'net-analyzer/scanssh/files/scanssh-2.0-fix-warnings.diff')
-rw-r--r-- | net-analyzer/scanssh/files/scanssh-2.0-fix-warnings.diff | 61 |
1 files changed, 61 insertions, 0 deletions
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 <sys/types.h> + #include <stdlib.h> ++#include <time.h> + + #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 <string.h> + #include <sys/types.h> + + #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) + { |