summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-01-23 21:07:59 +0100
committerxengineering <me@xengineering.eu>2023-01-23 21:07:59 +0100
commit7f2af8d7a28cb48b5b4dde919a5775506478b975 (patch)
tree0115022518187aada4099d1700073cfcf79d72bc
parentff549f22682b81d0ed859510173e728dac09b8b9 (diff)
downloadlimox-7f2af8d7a28cb48b5b4dde919a5775506478b975.tar
limox-7f2af8d7a28cb48b5b4dde919a5775506478b975.tar.zst
limox-7f2af8d7a28cb48b5b4dde919a5775506478b975.zip
Remove typedefs
They just hide complexity.
-rw-r--r--main.c8
1 files 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) {