From 3bab9d79a01ac70a78c012eaa82dccaaa5c59ee5 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 9 Aug 2009 12:11:03 +0200 Subject: fix compile-time warnings. One fix (in CCrashWatcher::GetPluginsInfo) needs closer look, others are "trivially correct" Signed-off-by: Denys Vlasenko --- src/Daemon/Daemon.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/Daemon/Daemon.cpp') diff --git a/src/Daemon/Daemon.cpp b/src/Daemon/Daemon.cpp index b8b350c..3a6c8fc 100644 --- a/src/Daemon/Daemon.cpp +++ b/src/Daemon/Daemon.cpp @@ -17,6 +17,7 @@ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#include "abrtlib.h" #include "CrashWatcher.h" #include "ABRTException.h" #include @@ -93,8 +94,8 @@ int main(int argc, char** argv) * Otherwise fprintf(stderr) dumps messages into random fds, etc. */ close(STDOUT_FILENO); close(STDERR_FILENO); - dup(0); - dup(0); + xdup(0); + xdup(0); } g_pCrashWatcher = new CCrashWatcher(DEBUG_DUMPS_DIR); if (daemonize) -- cgit