diff options
author | lukem <lukem@NetBSD.org> | 1997-10-10 11:39:08 +0000 |
---|---|---|
committer | lukem <lukem@NetBSD.org> | 1997-10-10 11:39:08 +0000 |
commit | b4bb83fd34ab5386afa1b8af8e0956ff7953d0e0 (patch) | |
tree | 5cd3c69d8e6d56c42128666f35ceed56746ed1d2 /battlestar/save.c | |
parent | 7016350ffcce57245468046bd3e36559e2684dca (diff) | |
download | bsdgames-darwin-b4bb83fd34ab5386afa1b8af8e0956ff7953d0e0.tar.gz bsdgames-darwin-b4bb83fd34ab5386afa1b8af8e0956ff7953d0e0.tar.zst bsdgames-darwin-b4bb83fd34ab5386afa1b8af8e0956ff7953d0e0.zip |
WARNSify
Diffstat (limited to 'battlestar/save.c')
-rw-r--r-- | battlestar/save.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/battlestar/save.c b/battlestar/save.c index 91dbb825..57ccd630 100644 --- a/battlestar/save.c +++ b/battlestar/save.c @@ -1,4 +1,4 @@ -/* $NetBSD: save.c,v 1.4 1997/01/07 11:56:50 tls Exp $ */ +/* $NetBSD: save.c,v 1.5 1997/10/10 11:40:19 lukem Exp $ */ /* * Copyright (c) 1983, 1993 @@ -33,24 +33,25 @@ * SUCH DAMAGE. */ +#include <sys/cdefs.h> #ifndef lint #if 0 static char sccsid[] = "@(#)save.c 8.2 (Berkeley) 4/28/95"; #else -static char rcsid[] = "$NetBSD: save.c,v 1.4 1997/01/07 11:56:50 tls Exp $"; +__RCSID("$NetBSD: save.c,v 1.5 1997/10/10 11:40:19 lukem Exp $"); #endif #endif /* not lint */ #include "extern.h" +void restore() { - char *getenv(); char *home; char home1[100]; - register int n; + int n; int tmp; - register FILE *fp; + FILE *fp; home = getenv("HOME"); strcpy(home1, home); @@ -96,12 +97,12 @@ restore() fread(&ego, sizeof ego, 1, fp); } +void save() { - char *getenv(); char *home; char home1[100]; - register int n; + int n; int tmp; FILE *fp; |