- (djm) Fix a few warnings the above turned up

This commit is contained in:
Damien Miller 2001-06-27 23:36:08 +10:00
parent 649d999b4b
commit 79b332dd67
4 changed files with 7 additions and 5 deletions

View File

@ -40,7 +40,7 @@
#include "pathnames.h"
#include "log.h"
RCSID("$Id: entropy.c,v 1.36 2001/03/18 22:38:16 djm Exp $");
RCSID("$Id: entropy.c,v 1.37 2001/06/27 13:36:08 djm Exp $");
#ifndef offsetof
# define offsetof(type, member) ((size_t) &((type *)0)->member)
@ -68,7 +68,7 @@ RCSID("$Id: entropy.c,v 1.36 2001/03/18 22:38:16 djm Exp $");
# 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;

View 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);

View 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

View 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