summaryrefslogtreecommitdiff
path: root/options.c
diff options
context:
space:
mode:
Diffstat (limited to 'options.c')
-rw-r--r--options.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/options.c b/options.c
index e1db6bd..5d652a9 100644
--- a/options.c
+++ b/options.c
@@ -259,8 +259,14 @@ void options_default(options_t* opt)
if(!opt)
return;
+#ifdef OPT_SWITCHCTL
+ opt->progname_ = strdup("switchctl");
+#endif
+#ifdef OPT_SERIALCLIENT
+ opt->progname_ = strdup("serialclient");
+#endif
+
/* common */
- opt->progname_ = strdup("rhctl");
opt->daemonize_ = 1;
opt->username_ = NULL;
opt->groupname_ = NULL;