From: djm Date: Wed, 27 Jun 2001 13:36:08 +0000 (+0000) Subject: - (djm) Fix a few warnings the above turned up X-Git-Tag: V_2_9_9_P1~255 X-Git-Url: http://andersk.mit.edu/gitweb/openssh.git/commitdiff_plain/d60382e031e03f6e38fcaaa4f98e6425bc237849 - (djm) Fix a few warnings the above turned up --- diff --git a/entropy.c b/entropy.c index 44440d97..46876039 100644 --- 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; diff --git a/openbsd-compat/glob.c b/openbsd-compat/glob.c index 4f70149c..365d4334 100644 --- a/openbsd-compat/glob.c +++ b/openbsd-compat/glob.c @@ -37,8 +37,8 @@ #include "includes.h" #include -long -get_arg_max() +static long +get_arg_max(void) { #ifdef ARG_MAX return(ARG_MAX); diff --git a/openbsd-compat/strlcat.c b/openbsd-compat/strlcat.c index 7631d969..d80739fc 100644 --- a/openbsd-compat/strlcat.c +++ b/openbsd-compat/strlcat.c @@ -36,6 +36,7 @@ static char *rcsid = "$OpenBSD: strlcat.c,v 1.5 2001/01/13 16:17:24 millert Exp #include #include +#include "strlcat.h" /* * Appends src to string dst of size siz (unlike strncat, siz is the diff --git a/openbsd-compat/strlcpy.c b/openbsd-compat/strlcpy.c index 276c25c3..99b06dd9 100644 --- a/openbsd-compat/strlcpy.c +++ b/openbsd-compat/strlcpy.c @@ -36,6 +36,7 @@ static char *rcsid = "$OpenBSD: strlcpy.c,v 1.4 1999/05/01 18:56:41 millert Exp #include #include +#include "strlcpy.h" /* * Copy src to string dst of size siz. At most siz-1 characters