diff options
-rw-r--r-- | src/c_opts.c | 15 | ||||
-rw-r--r-- | src/c_unixize.c | 5 |
2 files changed, 8 insertions, 12 deletions
diff --git a/src/c_opts.c b/src/c_opts.c index 886c10e..7c8170e 100644 --- a/src/c_opts.c +++ b/src/c_opts.c @@ -42,7 +42,7 @@ * 2020-11-02 23:37 * Joe * - * This is where we handle command line options + * This is where we handle command line options. */ #include <stdlib.h> @@ -52,10 +52,7 @@ #include "c_opts.h" void -c_opts -(struct opts_s* opts, - int argc, - const char* argv[]) +c_opts(struct opts_s* opts, int argc, const char* argv[]) { int opt; @@ -70,10 +67,10 @@ c_opts } else if (opt == '?') { dprintf( - STDERR_FILENO, - "unixize: %c: unknown option\n", - optopt - ); + STDERR_FILENO, + "unixize: %c: unknown option\n", + optopt + ); exit(1); } } diff --git a/src/c_unixize.c b/src/c_unixize.c index 3e16ecd..5381880 100644 --- a/src/c_unixize.c +++ b/src/c_unixize.c @@ -50,14 +50,13 @@ /* #else */ /* # include <limits.h> */ /* #endif */ + #include <stdio.h> #include "c_opts.h" int -main -(int argc, - const char* argv[]) +main(int argc, const char* argv[]) { struct opts_s opts; |