diff options
-rw-r--r-- | main.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -27,16 +27,16 @@ /* * Configuration struct for all options */ -typedef struct options { +struct Options { bool unknown; bool help; -} Options; +}; /* * Parse command line arguments */ -static void get_opts(Options* opts, int argc, char* argv[]) +static void get_opts(struct Options *opts, int argc, char* argv[]) { opts->unknown = false; opts->help = false; @@ -74,7 +74,7 @@ static void print_help(void) */ int main(int argc, char* argv[]) { - Options opts; + struct Options opts; get_opts(&opts, argc, argv); if (opts.unknown || opts.help) { |