summaryrefslogtreecommitdiffstats
path: root/src/plugins/abrt-action-rhtsupport.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/abrt-action-rhtsupport.c')
-rw-r--r--src/plugins/abrt-action-rhtsupport.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/plugins/abrt-action-rhtsupport.c b/src/plugins/abrt-action-rhtsupport.c
index a596ac40..42859d5c 100644
--- a/src/plugins/abrt-action-rhtsupport.c
+++ b/src/plugins/abrt-action-rhtsupport.c
@@ -259,7 +259,7 @@ int main(int argc, char **argv)
enum {
OPT_s = (1 << 0),
};
- int optflags = 0;
+ int opts = 0;
int opt;
while ((opt = getopt(argc, argv, "c:d:vs")) != -1)
{
@@ -277,7 +277,7 @@ int main(int argc, char **argv)
g_verbose++;
break;
case 's':
- optflags |= OPT_s;
+ opts |= OPT_s;
break;
default:
/* Careful: the string below contains tabs, dont replace with spaces */
@@ -296,11 +296,9 @@ int main(int argc, char **argv)
}
putenv(xasprintf("ABRT_VERBOSE=%u", g_verbose));
-
//DONT! our stdout/stderr goes directly to daemon, don't want to have prefix there.
// msg_prefix = xasprintf(PROGNAME"[%u]", getpid());
-
- if (optflags & OPT_s)
+ if (opts & OPT_s)
{
openlog(msg_prefix, 0, LOG_DAEMON);
logmode = LOGMODE_SYSLOG;