Localize scope for restore file pointer in main.
This commit is contained in:
parent
22a557efb1
commit
3d3cd4ba39
1 changed files with 2 additions and 1 deletions
3
main.c
3
main.c
|
@ -25,7 +25,7 @@
|
|||
|
||||
#define DIM(a) (sizeof(a)/sizeof(a[0]))
|
||||
|
||||
FILE *logfp = NULL, *rfp = NULL;
|
||||
FILE *logfp = 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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue