summaryrefslogtreecommitdiffstats
path: root/games/atc
diff options
context:
space:
mode:
authorchl <chl@openbsd.org>2007-09-14 14:29:20 +0000
committerchl <chl@openbsd.org>2007-09-14 14:29:20 +0000
commitefba6f5083025218647785ab5d1ac16fd770d04a (patch)
tree94827ab5f585fc6d130d421bbaca694e6bdfc55f /games/atc
parentUse our standard ratesets from ieee80211 instead. (diff)
downloadwireguard-openbsd-efba6f5083025218647785ab5d1ac16fd770d04a.tar.xz
wireguard-openbsd-efba6f5083025218647785ab5d1ac16fd770d04a.zip
remove some warnings:
unused variable `variable' `variable' might be used uninitialized in this function ok gilles@ ray@
Diffstat (limited to 'games/atc')
-rw-r--r--games/atc/main.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/games/atc/main.c b/games/atc/main.c
index ab15b9f3603..335ff78240b 100644
--- a/games/atc/main.c
+++ b/games/atc/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.18 2007/09/11 15:21:05 gilles Exp $ */
+/* $OpenBSD: main.c,v 1.19 2007/09/14 14:29:20 chl Exp $ */
/* $NetBSD: main.c,v 1.4 1995/04/27 21:22:25 mycroft Exp $ */
/*-
@@ -52,7 +52,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$OpenBSD: main.c,v 1.18 2007/09/11 15:21:05 gilles Exp $";
+static char rcsid[] = "$OpenBSD: main.c,v 1.19 2007/09/14 14:29:20 chl Exp $";
#endif
#endif /* not lint */
@@ -257,7 +257,7 @@ default_game(void)
{
FILE *fp;
static char file[256];
- char line[256], games[256], *p;
+ char line[256], games[256];
strlcpy(games, _PATH_GAMES, sizeof games);
strlcat(games, GAMES, sizeof games);
@@ -299,8 +299,6 @@ okay_game(const char *s)
return (NULL);
}
while (fgets(line, sizeof(line), fp) != NULL) {
- char *p;
-
line[strcspn(line, "\n")] = '\0';
if (strcmp(s, line) == 0) {
if (strlen(line) + strlen(_PATH_GAMES) >= sizeof(file)) {