projects
/
open-adventure.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22a557e
)
Localize scope for restore file pointer in main.
186/head
author
Aaron Traas
<aaron@traas.org>
Sun, 2 Jul 2017 06:28:58 +0000
(
02:28
-0400)
committer
Aaron Traas
<aaron@traas.org>
Sun, 2 Jul 2017 06:28:58 +0000
(
02:28
-0400)
main.c
patch
|
blob
|
history
diff --git
a/main.c
b/main.c
index 1cff0d1648db7fb827b29fb6f3859ada02bcf16e..345a7b23343daa4d55b5ab96bdf43036498c612d 100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-25,7
+25,7
@@
#define DIM(a) (sizeof(a)/sizeof(a[0]))
-FILE
*logfp = NULL, *r
fp = NULL;
+FILE
*log
fp = NULL;
bool oldstyle = false;
bool prompt = true;
@@
-63,6
+63,7
@@
int main(int argc, char *argv[])
#ifndef ADVENT_NOSAVE
const char* opts = "l:or:";
const char* usage = "Usage: %s [-l logfilename] [-o] [-r restorefilename]\n";
+ FILE *rfp = NULL;
#else
const char* opts = "l:o";
const char* usage = "Usage: %s [-l logfilename] [-o]\n";