From 7f2af8d7a28cb48b5b4dde919a5775506478b975 Mon Sep 17 00:00:00 2001 From: xengineering Date: Mon, 23 Jan 2023 21:07:59 +0100 Subject: Remove typedefs They just hide complexity. --- main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.c b/main.c index de8e761..bdce11b 100644 --- a/main.c +++ b/main.c @@ -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) { -- cgit v1.2.3-70-g09d2