main.c, reduce scope of `gdata'

This commit is contained in:
rlar 2011-07-02 20:23:40 +00:00
parent 4484058cbe
commit 21f4534455
1 changed files with 5 additions and 9 deletions

View File

@ -779,12 +779,6 @@ print_news(void)
int
main(int argc, char **argv)
{
#ifdef SIMULATOR
#else
bool gdata = TRUE;
#endif
char buf[BSIZE_SP];
bool readinit = TRUE;
bool istty = TRUE;
@ -1024,9 +1018,6 @@ main(int argc, char **argv)
if_getparam = spif_getparam_special;
#else
if_getparam = nutif_getparam;
if (optind == argc) /* No raw file */
gdata = FALSE;
#endif
if ((!iflag && !istty) || ft_servermode) /* (batch and file) or server operation */
@ -1316,6 +1307,11 @@ main(int argc, char **argv)
} else {
bool gdata = TRUE;
if (optind == argc) /* No raw file */
gdata = FALSE;
cp_interactive = FALSE;
if (gdata) {