diff options
author | xengineering <me@xengineering.eu> | 2023-01-23 21:07:59 +0100 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2023-01-23 21:07:59 +0100 |
commit | 7f2af8d7a28cb48b5b4dde919a5775506478b975 (patch) | |
tree | 0115022518187aada4099d1700073cfcf79d72bc | |
parent | ff549f22682b81d0ed859510173e728dac09b8b9 (diff) | |
download | limox-7f2af8d7a28cb48b5b4dde919a5775506478b975.tar limox-7f2af8d7a28cb48b5b4dde919a5775506478b975.tar.zst limox-7f2af8d7a28cb48b5b4dde919a5775506478b975.zip |
Remove typedefs
They just hide complexity.
-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) { |