diff options
author | jozan <jozan@noemail.net> | 2020-11-02 23:52:06 +0000 |
---|---|---|
committer | jozan <jozan@noemail.net> | 2020-11-02 23:52:06 +0000 |
commit | 76352a0dd0ba461c332b4332d131d7e8c7d2e560 (patch) | |
tree | 127a2ad6624626e0f3e3dc043ba43fe64c3a114d | |
parent | Learning getopt(3) (diff) | |
download | unixize-76352a0dd0ba461c332b4332d131d7e8c7d2e560.tar.gz unixize-76352a0dd0ba461c332b4332d131d7e8c7d2e560.tar.bz2 unixize-76352a0dd0ba461c332b4332d131d7e8c7d2e560.tar.xz unixize-76352a0dd0ba461c332b4332d131d7e8c7d2e560.tar.zst unixize-76352a0dd0ba461c332b4332d131d7e8c7d2e560.zip |
I'll see norm later
FossilOrigin-Name: 0b5c62a2a0e28af01363d5590620a2354a7284ee937a80f1796fc40fa9c86cde
-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; |