summaryrefslogtreecommitdiff
path: root/options.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2009-11-13 21:31:44 (GMT)
committerChristian Pointner <equinox@helsinki.at>2009-11-13 21:31:44 (GMT)
commitee8692b79ebfb35bd58aad740e5cb1328108e38e (patch)
tree480fbfe3e3d3420915ac89056d12d68db8103add /options.c
parent07bcebb74f5ca9ecb69104a0fba7f65117be70b9 (diff)
fixed progname at options
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;