summaryrefslogtreecommitdiff
path: root/games/hunt/huntd
diff options
context:
space:
mode:
authorDavid Leonard <d@cvs.openbsd.org>1999-08-30 23:35:51 +0000
committerDavid Leonard <d@cvs.openbsd.org>1999-08-30 23:35:51 +0000
commite5df806b4d6692d986d754f0bcca4a2cea57dc90 (patch)
treee98914f5989fefbb4cb2f88d77a25013db453d39 /games/hunt/huntd
parent22eb81ec4ef3b8df043d499ba75160d0b24416d9 (diff)
-Wall
Diffstat (limited to 'games/hunt/huntd')
-rw-r--r--games/hunt/huntd/conf.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/games/hunt/huntd/conf.c b/games/hunt/huntd/conf.c
index 875debd2cd1..20e85326cdf 100644
--- a/games/hunt/huntd/conf.c
+++ b/games/hunt/huntd/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.2 1999/02/01 06:53:55 d Exp $ */
+/* $OpenBSD: conf.c,v 1.3 1999/08/30 23:35:50 d Exp $ */
/* David Leonard <d@openbsd.org>, 1999. Public domain. */
#include <stdio.h>
@@ -166,7 +166,6 @@ parse_value(p, kvp, fnm, linep)
switch (kvp->type) {
case Vint:
return parse_int(p, kvp, fnm, linep);
- break;
case Vchar:
case Vstring:
case Vdouble:
@@ -186,7 +185,6 @@ parse_line(buf, fnm, line)
char *word;
char *endword;
struct kwvar *kvp;
- int *varp;
char savec;
p = buf;
@@ -214,7 +212,6 @@ parse_line(buf, fnm, line)
}
/* match the configuration variable name */
- varp = NULL;
savec = *endword;
*endword = '\0';
for (kvp = keywords; kvp->kw; kvp++)
@@ -264,7 +261,7 @@ load_config(f, fnm)
char * fnm;
{
char buf[BUFSIZ];
- int len;
+ size_t len;
int line;
char *p;