From ee8692b79ebfb35bd58aad740e5cb1328108e38e Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Fri, 13 Nov 2009 21:31:44 +0000 Subject: fixed progname at options 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; -- cgit v0.10.2