Commit 2d2c42e652606ac2fd60d34519cb7b4b325422b2
authorDaniël Geelen <daniel.geelen+github@gmail.com>
Wed, 23 May 2018 17:08:41 +0000 (19:08 +0200)
committerDaniël Geelen <daniel.geelen+github@gmail.com>
Wed, 23 May 2018 17:09:48 +0000 (19:09 +0200)
simavr/sim/run_avr.c

index 7559e94139c2ba861bcadf6841f86986e2faba34..d3b977a57686091f3883bb9c9ec9dc67188fb538 100644 (file)
@@ -122,14 +122,14 @@ main(
                } else if (!strcmp(argv[pi], "-t") || !strcmp(argv[pi], "--trace")) {
                        trace++;
                } else if (!strcmp(argv[pi], "--vcd-trace-name")) {
-                       if (pi+1>=argc) {
+                       if (pi + 1 >= argc) {
                                fprintf(stderr, "%s: missing mandatory argument for %s.\n", argv[0], argv[pi]);
                                exit(1);
                        }
                        ++pi;
                        strncpy(f.tracename, argv[pi], sizeof(f.tracename));
                } else if (!strcmp(argv[pi], "--add-vcd-trace")) {
-                       if (pi+1>=argc) {
+                       if (pi + 1 >= argc) {
                                fprintf(stderr, "%s: missing mandatory argument for %s.\n", argv[0], argv[pi]);
                                exit(1);
                        }
@@ -186,7 +186,7 @@ main(
 
                        ++f.tracecount;
                } else if (!strcmp(argv[pi], "--vcd-trace-file")) {
-                       if (pi+1>=argc) {
+                       if (pi + 1 >= argc) {
                                fprintf(stderr, "%s: missing mandatory argument for %s.\n", argv[0], argv[pi]);
                                exit(1);
                        }