diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-08-09 12:11:03 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-08-09 12:11:03 +0200 |
commit | 3bab9d79a01ac70a78c012eaa82dccaaa5c59ee5 (patch) | |
tree | b22cb40eac1cff376d2cb0abb066202fe414eae3 /lib/Utils | |
parent | 5bfd6ac66529ed1976db7df0ab4853eec855e411 (diff) | |
download | abrt-3bab9d79a01ac70a78c012eaa82dccaaa5c59ee5.tar.gz abrt-3bab9d79a01ac70a78c012eaa82dccaaa5c59ee5.tar.xz abrt-3bab9d79a01ac70a78c012eaa82dccaaa5c59ee5.zip |
fix compile-time warnings.
One fix (in CCrashWatcher::GetPluginsInfo) needs closer look,
others are "trivially correct"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'lib/Utils')
-rw-r--r-- | lib/Utils/xfuncs.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Utils/xfuncs.cpp b/lib/Utils/xfuncs.cpp index 078c8045..60c2eb4f 100644 --- a/lib/Utils/xfuncs.cpp +++ b/lib/Utils/xfuncs.cpp @@ -88,6 +88,12 @@ void xpipe(int filedes[2]) perror_msg_and_die("can't create pipe"); } +void xdup(int from) +{ + if (dup(from) < 0) + perror_msg_and_die("can't duplicate file descriptor"); +} + void xdup2(int from, int to) { if (dup2(from, to) != to) |