summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-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) {