diff options
| author | Denys Vlasenko <dvlasenk@redhat.com> | 2011-01-20 20:33:34 +0100 |
|---|---|---|
| committer | Denys Vlasenko <dvlasenk@redhat.com> | 2011-01-20 20:33:34 +0100 |
| commit | e3d48ee0458f1d0078da65bad99804d2ba58aaf0 (patch) | |
| tree | 5495c0a50ba3357025a3deb7b5c72c3af9cfc9fe /src/plugins/abrt-action-bugzilla.cpp | |
| parent | d7d62ea5ee19f5cad52dcfb2f2a49d8d36fa1228 (diff) | |
| download | abrt-e3d48ee0458f1d0078da65bad99804d2ba58aaf0.tar.gz abrt-e3d48ee0458f1d0078da65bad99804d2ba58aaf0.tar.xz abrt-e3d48ee0458f1d0078da65bad99804d2ba58aaf0.zip | |
make option handling more regular across all tools
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'src/plugins/abrt-action-bugzilla.cpp')
| -rw-r--r-- | src/plugins/abrt-action-bugzilla.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/plugins/abrt-action-bugzilla.cpp b/src/plugins/abrt-action-bugzilla.cpp index 19735452..9d849d99 100644 --- a/src/plugins/abrt-action-bugzilla.cpp +++ b/src/plugins/abrt-action-bugzilla.cpp @@ -906,7 +906,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) { @@ -924,7 +924,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 */ @@ -943,11 +943,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("abrt-action-bugzilla[%u]", getpid()); - - if (optflags & OPT_s) + if (opts & OPT_s) { openlog(msg_prefix, 0, LOG_DAEMON); logmode = LOGMODE_SYSLOG; |
