main.c, reduce scope of the `err' variable

This commit is contained in:
rlar 2011-07-02 20:21:57 +00:00
parent fc3107590c
commit 6b2d6c67ca
1 changed files with 2 additions and 3 deletions

View File

@ -779,7 +779,6 @@ print_news(void)
int int
main(int argc, char **argv) main(int argc, char **argv)
{ {
int err;
#ifdef SIMULATOR #ifdef SIMULATOR
bool gotone = FALSE; bool gotone = FALSE;
@ -1129,7 +1128,6 @@ main(int argc, char **argv)
} else { } else {
cp_interactive = FALSE; cp_interactive = FALSE;
err = 0;
#ifdef FastRand #ifdef FastRand
// initialization and seed for FastNorm Gaussian random generator // initialization and seed for FastNorm Gaussian random generator
@ -1157,6 +1155,8 @@ main(int argc, char **argv)
if (!ft_servermode) { if (!ft_servermode) {
int err = 0;
/* Concatenate all non-option arguments into a temporary file /* Concatenate all non-option arguments into a temporary file
and load that file into the spice core. and load that file into the spice core.
@ -1316,7 +1316,6 @@ main(int argc, char **argv)
} else { } else {
cp_interactive = FALSE; cp_interactive = FALSE;
err = 0;
if (gdata) { if (gdata) {
if (optind < argc) if (optind < argc)