Fix problems in the sim sources discovered by running the cppcheck static analysis...
[deliverable/binutils-gdb.git] / sim / erc32 / sis.c
index 92880e14c0bb959ba9417fc1fbeba81d5eec3697..180d97ea598ea15caa7d2e441efd0aa96e1de550 100644 (file)
@@ -169,7 +169,7 @@ main(argc, argv)
     while (stat < argc) {
        if (argv[stat][0] == '-') {
            if (strcmp(argv[stat], "-v") == 0) {
-               sis_verbose = 1;
+               sis_verbose += 1;
            } else if (strcmp(argv[stat], "-c") == 0) {
                if ((stat + 1) < argc) {
                    copt = 1;
@@ -202,8 +202,6 @@ main(argc, argv)
 #endif
             } else if (strcmp(argv[stat], "-dumbio") == 0) {
                dumbio = 1;
-            } else if (strcmp(argv[stat], "-v") == 0) {
-               sis_verbose += 1;
            } else {
                printf("unknown option %s\n", argv[stat]);
                usage();
This page took 0.023187 seconds and 4 git commands to generate.