main.c, reduce scope of the `err' variable
This commit is contained in:
parent
fc3107590c
commit
6b2d6c67ca
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue