diff options
author | Davidlohr Bueso <dave@gnu.org> | 2010-10-15 11:59:18 -0300 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2010-10-21 10:31:50 +0200 |
commit | 87f3feac713c7aa652bb1d7e4e231ed06a960f4c (patch) | |
tree | 08a67efb1983277b4e32919d30235953dd4f9431 /misc-utils/wipefs.c | |
parent | d7df7ba2646fae6e9a7e083fb693eb35b702008c (diff) | |
download | util-linux-old-87f3feac713c7aa652bb1d7e4e231ed06a960f4c.tar.gz |
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 c0b29f0e..dbfabc4a 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) { |