diff options
author | Davidlohr Bueso | 2010-10-15 16:59:18 +0200 |
---|---|---|
committer | Karel Zak | 2010-10-21 10:31:50 +0200 |
commit | 87f3feac713c7aa652bb1d7e4e231ed06a960f4c (patch) | |
tree | 08a67efb1983277b4e32919d30235953dd4f9431 /misc-utils/wipefs.c | |
parent | xalloc: general purpose memory allocation handling wrappers (diff) | |
download | kernel-qcow2-util-linux-87f3feac713c7aa652bb1d7e4e231ed06a960f4c.tar.gz kernel-qcow2-util-linux-87f3feac713c7aa652bb1d7e4e231ed06a960f4c.tar.xz kernel-qcow2-util-linux-87f3feac713c7aa652bb1d7e4e231ed06a960f4c.zip |
misc-utils: use new xmalloc() wrapper
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Diffstat (limited to 'misc-utils/wipefs.c')
-rw-r--r-- | misc-utils/wipefs.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/misc-utils/wipefs.c b/misc-utils/wipefs.c index c0b29f0ec..dbfabc4a1 100644 --- a/misc-utils/wipefs.c +++ b/misc-utils/wipefs.c @@ -34,6 +34,7 @@ #include <blkid.h> #include "nls.h" +#include "xalloc.h" #include "strtosize.h" struct wipe_desc { @@ -135,15 +136,6 @@ add_offset(struct wipe_desc *wp0, loff_t offset, int zap) return wp; } -static inline void * -xmalloc(size_t sz) -{ - void *x = malloc(sz); - if (!x) - err(EXIT_FAILURE, _("malloc failed")); - return x; -} - static inline char * xstrdup(const char *s) { |