summaryrefslogtreecommitdiff
path: root/xmalloc.h
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-06-12 14:33:43 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-06-12 14:33:43 +0200
commitdfb45a7ac75d17c3a8421bfb53840d6db271a121 (patch)
tree3d9882f7c077d7ff431a1379f89f2115640ce201 /xmalloc.h
parent44b463529a8a9f2ccd1ec2acb8a4dfc117a636cb (diff)
ioops: misc: add dup{,2}_or_die to ioops
Bail out if it should ever fail. Detected by coverty in the translate_pcap_to_txf() path. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'xmalloc.h')
-rw-r--r--xmalloc.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/xmalloc.h b/xmalloc.h
index 21ce84d..e1e4f8f 100644
--- a/xmalloc.h
+++ b/xmalloc.h
@@ -16,7 +16,6 @@ extern void *xrealloc(void *ptr, size_t nmemb, size_t size) __hidden;
extern void xfree_func(void *ptr) __hidden;
extern char *xstrdup(const char *str) __hidden;
extern char *xstrndup(const char *str, size_t size) __hidden;
-extern int xdup(int fd) __hidden;
static inline void __xfree(void *ptr)
{