summaryrefslogtreecommitdiffstats
path: root/openbsd-compat
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-06-27 23:36:08 +1000
committerDamien Miller <djm@mindrot.org>2001-06-27 23:36:08 +1000
commit79b332dd6748980cf9c8af39e3194a7e272b9256 (patch)
treea0cbb7fba6e8746a658cd94d52ff45293e628c63 /openbsd-compat
parent649d999b4bab2d2ff5fadf7c77f2d685ece4708c (diff)
- (djm) Fix a few warnings the above turned up
Diffstat (limited to 'openbsd-compat')
-rw-r--r--openbsd-compat/glob.c4
-rw-r--r--openbsd-compat/strlcat.c1
-rw-r--r--openbsd-compat/strlcpy.c1
3 files changed, 4 insertions, 2 deletions
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 <ctype.h>
-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 <sys/types.h>
#include <string.h>
+#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 <sys/types.h>
#include <string.h>
+#include "strlcpy.h"
/*
* Copy src to string dst of size siz. At most siz-1 characters