summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1994-09-23 08:28:43 +0000
committerdg <dg@FreeBSD.org>1994-09-23 08:28:43 +0000
commit02fde0fde8a319ed556115c66848514fc2ad10c1 (patch)
treeb6a1271d620d1e2cee48d5cfc2a36aa7b1299a24 /gnu
parent52e444285421c38384d2364f6ff3925cea77ed5d (diff)
downloadFreeBSD-src-02fde0fde8a319ed556115c66848514fc2ad10c1.zip
FreeBSD-src-02fde0fde8a319ed556115c66848514fc2ad10c1.tar.gz
Fixed a couple of compiler warnings related to wrong prototypes.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/awk/io.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gnu/usr.bin/awk/io.c b/gnu/usr.bin/awk/io.c
index 7fe21ec..93cc3ae 100644
--- a/gnu/usr.bin/awk/io.c
+++ b/gnu/usr.bin/awk/io.c
@@ -646,7 +646,8 @@ devopen(name, mode)
const char *name, *mode;
{
int openfd = INVALID_HANDLE;
- const char *cp, *ptr;
+ const char *cp;
+ char *ptr;
int flag = 0;
struct stat buf;
extern double strtod();
@@ -806,7 +807,7 @@ const char *name, *mode;
char tbuf[BUFSIZ], *cp;
int i;
#if defined(NGROUPS_MAX) && NGROUPS_MAX > 0
-#if defined(atarist) || defined(__svr4__) || defined(__osf__)
+#if defined(atarist) || defined(__svr4__) || defined(__osf__) || defined(__FreeBSD__)
gid_t groupset[NGROUPS_MAX];
#else
int groupset[NGROUPS_MAX];
OpenPOWER on IntegriCloud