summaryrefslogtreecommitdiff
path: root/other/bootstrap_daemon/src/command_line_arguments.c
diff options
context:
space:
mode:
Diffstat (limited to 'other/bootstrap_daemon/src/command_line_arguments.c')
-rw-r--r--other/bootstrap_daemon/src/command_line_arguments.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/other/bootstrap_daemon/src/command_line_arguments.c b/other/bootstrap_daemon/src/command_line_arguments.c
index d9747932..d76bc655 100644
--- a/other/bootstrap_daemon/src/command_line_arguments.c
+++ b/other/bootstrap_daemon/src/command_line_arguments.c
@@ -73,13 +73,13 @@ void handle_command_line_arguments(int argc, char *argv[], char **cfg_file_path,
73 73
74 opterr = 0; 74 opterr = 0;
75 75
76 static struct option long_options[] = { 76 static const struct option long_options[] = {
77 {"config", required_argument, 0, 'c'}, // required option 77 {"config", required_argument, nullptr, 'c'}, // required option
78 {"foreground", no_argument, 0, 'f'}, 78 {"foreground", no_argument, nullptr, 'f'},
79 {"help", no_argument, 0, 'h'}, 79 {"help", no_argument, nullptr, 'h'},
80 {"log-backend", required_argument, 0, 'l'}, // optional, defaults to syslog 80 {"log-backend", required_argument, nullptr, 'l'}, // optional, defaults to syslog
81 {"version", no_argument, 0, 'v'}, 81 {"version", no_argument, nullptr, 'v'},
82 {0, 0, 0, 0 } 82 {nullptr, 0, nullptr, 0 }
83 }; 83 };
84 84
85 bool cfg_file_path_set = false; 85 bool cfg_file_path_set = false;