]> andersk Git - openssh.git/commitdiff
- (djm) Fix a few warnings the above turned up
authordjm <djm>
Wed, 27 Jun 2001 13:36:08 +0000 (13:36 +0000)
committerdjm <djm>
Wed, 27 Jun 2001 13:36:08 +0000 (13:36 +0000)
entropy.c
openbsd-compat/glob.c
openbsd-compat/strlcat.c
openbsd-compat/strlcpy.c

index 44440d974cb6830a462ad34dba4ce1cf13a6d3b6..468760394b2e531e174ed64f4cd4f24114c05a4a 100644 (file)
--- a/entropy.c
+++ b/entropy.c
@@ -68,7 +68,7 @@ RCSID("$Id$");
 # define SAVED_IDS_WORK_WITH_SETEUID
 #endif
 
-void
+static void
 check_openssl_version(void) 
 {
        if (SSLeay() != OPENSSL_VERSION_NUMBER)
@@ -182,7 +182,7 @@ done:
 #else /* !USE_PRNGD */
 #ifdef RANDOM_POOL
 /* Collect entropy from /dev/urandom or pipe */
-int
+static int
 get_random_bytes(unsigned char *buf, int len)
 {
        int random_pool;
index 4f70149cb69600c7db508a0a186c5cbb9412b35f..365d4334fc5d6ced0024b242a0042f83bc6bd7b8 100644 (file)
@@ -37,8 +37,8 @@
 #include "includes.h"
 #include <ctype.h>
 
-long
-get_arg_max()
+static long
+get_arg_max(void)
 {
 #ifdef ARG_MAX
        return(ARG_MAX);
index 7631d96949f2679d936be2f797b5b9c99c0d2739..d80739fc69c915812991325fd1894392b72b4aaf 100644 (file)
@@ -36,6 +36,7 @@ static char *rcsid = "$OpenBSD: strlcat.c,v 1.5 2001/01/13 16:17:24 millert Exp
 
 #include <sys/types.h>
 #include <string.h>
+#include "strlcat.h"
 
 /*
  * Appends src to string dst of size siz (unlike strncat, siz is the
index 276c25c37fb178da827cd87bf546530118d7133f..99b06dd90b11cdd8014be9649ad017cecde9771e 100644 (file)
@@ -36,6 +36,7 @@ static char *rcsid = "$OpenBSD: strlcpy.c,v 1.4 1999/05/01 18:56:41 millert Exp
 
 #include <sys/types.h>
 #include <string.h>
+#include "strlcpy.h"
 
 /*
  * Copy src to string dst of size siz.  At most siz-1 characters
This page took 0.101208 seconds and 5 git commands to generate.