diff options
| author | Denys Vlasenko <dvlasenk@redhat.com> | 2010-09-14 14:05:46 +0200 |
|---|---|---|
| committer | Denys Vlasenko <dvlasenk@redhat.com> | 2010-09-14 14:05:46 +0200 |
| commit | fed72f316d52c65ee1aea9f4b36dac19adb6349a (patch) | |
| tree | 2cb6c356511c44e30819a1ff2933d5de1c58a391 /src | |
| parent | 612234fe9c42ddbb9a91f1f247f2b8daff93f4d8 (diff) | |
msg_prefix now doesn't need ": " suffix
Contains some other trivial changes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/daemon/Daemon.cpp | 6 | ||||
| -rw-r--r-- | src/daemon/Makefile.am | 4 | ||||
| -rw-r--r-- | src/hooks/dumpoops.cpp | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/daemon/Daemon.cpp b/src/daemon/Daemon.cpp index 5d70c255..a0875279 100644 --- a/src/daemon/Daemon.cpp +++ b/src/daemon/Daemon.cpp @@ -787,7 +787,7 @@ int main(int argc, char** argv) } } - msg_prefix = "abrtd: "; /* for log(), error_msg() and such */ + msg_prefix = "abrtd"; /* for log(), error_msg() and such */ xpipe(s_signal_pipe); close_on_exec_on(s_signal_pipe[0]); @@ -839,7 +839,6 @@ int main(int argc, char** argv) bool lockfile_created = false; bool pidfile_created = false; CCrashWatcher watcher; - xmlrpc_env env; /* Initialization */ try @@ -851,10 +850,12 @@ int main(int argc, char** argv) throw 1; VERB1 log("Initializing XML-RPC library"); + xmlrpc_env env; xmlrpc_env_init(&env); xmlrpc_client_setup_global_const(&env); if (env.fault_occurred) error_msg_and_die("XML-RPC Fault: %s(%d)", env.fault_string, env.fault_code); + xmlrpc_env_clean(&env); VERB1 log("Initializing rpm library"); rpm_init(); @@ -966,7 +967,6 @@ int main(int argc, char** argv) /* Error or INT/TERM. Clean up, in reverse order. * Take care to not undo things we did not do. */ - xmlrpc_env_clean(&env); xmlrpc_client_teardown_global_const(); dumpsocket_shutdown(); rpm_destroy(); diff --git a/src/daemon/Makefile.am b/src/daemon/Makefile.am index 7dacc604..cd69cd36 100644 --- a/src/daemon/Makefile.am +++ b/src/daemon/Makefile.am @@ -9,9 +9,9 @@ abrtd_SOURCES = \ CrashWatcher.h CrashWatcher.cpp \ CommLayerServer.h CommLayerServer.cpp \ CommLayerServerDBus.h CommLayerServerDBus.cpp \ - Daemon.h Daemon.cpp \ Settings.h Settings.cpp \ - dumpsocket.h dumpsocket.cpp + dumpsocket.h dumpsocket.cpp \ + Daemon.h Daemon.cpp abrtd_CPPFLAGS = \ -I$(srcdir)/../../inc \ -I$(srcdir)/../../lib/utils \ diff --git a/src/hooks/dumpoops.cpp b/src/hooks/dumpoops.cpp index 04400373..7f5b634c 100644 --- a/src/hooks/dumpoops.cpp +++ b/src/hooks/dumpoops.cpp @@ -70,7 +70,7 @@ int main(int argc, char **argv) if (!argv[0]) goto usage; - msg_prefix = xasprintf("%s: ", program_name); + msg_prefix = program_name; /* Load KerneloopsScanner plugin */ // const plugin_info_t *plugin_info; |
