summaryrefslogtreecommitdiffstats
path: root/src/plugins/abrt-action-kerneloops.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/abrt-action-kerneloops.c')
-rw-r--r--src/plugins/abrt-action-kerneloops.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/plugins/abrt-action-kerneloops.c b/src/plugins/abrt-action-kerneloops.c
index 160b6412..4fef19b4 100644
--- a/src/plugins/abrt-action-kerneloops.c
+++ b/src/plugins/abrt-action-kerneloops.c
@@ -129,7 +129,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)
{
@@ -147,7 +147,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 */
@@ -166,11 +166,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;