diff options
author | Mark Whitley <markw@lineo.com> | 2000-12-14 02:23:30 +0300 |
---|---|---|
committer | Mark Whitley <markw@lineo.com> | 2000-12-14 02:23:30 +0300 |
commit | 6f6aa9b428f8d9c1988b837a3e473c5248358384 (patch) | |
tree | 4bd0ee876e9c6216763ce3cd44d1837a456d3e08 | |
parent | e3a94f7d08615e7d957118eb90c9b28d74d111f4 (diff) |
Added some necessary brackets, removed debug noise.
-rw-r--r-- | console-tools/deallocvt.c | 7 | ||||
-rw-r--r-- | deallocvt.c | 7 |
2 files changed, 6 insertions, 8 deletions
diff --git a/console-tools/deallocvt.c b/console-tools/deallocvt.c index ebdce7b24..b128c3fae 100644 --- a/console-tools/deallocvt.c +++ b/console-tools/deallocvt.c @@ -24,14 +24,12 @@ int deallocvt_main(int argc, char *argv[]) fd = get_console_fd("/dev/console"); if (argc == 1) { -printf("erik: A\n"); /* deallocate all unused consoles */ if (ioctl(fd, VT_DISALLOCATE, 0)) { perror("VT_DISALLOCATE"); return EXIT_FAILURE; } - } else -printf("erik: B\n"); + } else { for (i = 1; i < argc; i++) { num = atoi(argv[i]); if (num == 0) @@ -43,6 +41,7 @@ printf("erik: B\n"); error_msg_and_die("could not deallocate console %d\n", num); } } -printf("erik: C\n"); + } + return EXIT_SUCCESS; } diff --git a/deallocvt.c b/deallocvt.c index ebdce7b24..b128c3fae 100644 --- a/deallocvt.c +++ b/deallocvt.c @@ -24,14 +24,12 @@ int deallocvt_main(int argc, char *argv[]) fd = get_console_fd("/dev/console"); if (argc == 1) { -printf("erik: A\n"); /* deallocate all unused consoles */ if (ioctl(fd, VT_DISALLOCATE, 0)) { perror("VT_DISALLOCATE"); return EXIT_FAILURE; } - } else -printf("erik: B\n"); + } else { for (i = 1; i < argc; i++) { num = atoi(argv[i]); if (num == 0) @@ -43,6 +41,7 @@ printf("erik: B\n"); error_msg_and_die("could not deallocate console %d\n", num); } } -printf("erik: C\n"); + } + return EXIT_SUCCESS; } |