diff options
author | Davidlohr Bueso | 2011-12-14 18:56:57 +0100 |
---|---|---|
committer | Karel Zak | 2011-12-16 12:42:40 +0100 |
commit | a2f5c22173f6af9a181646a90f5f5f009450661c (patch) | |
tree | 9edc89a2f4b110f85a7814c4b21dc3d97af4d2c7 /misc-utils/wipefs.c | |
parent | lists: add list sorting routine (diff) | |
download | kernel-qcow2-util-linux-a2f5c22173f6af9a181646a90f5f5f009450661c.tar.gz kernel-qcow2-util-linux-a2f5c22173f6af9a181646a90f5f5f009450661c.tar.xz kernel-qcow2-util-linux-a2f5c22173f6af9a181646a90f5f5f009450661c.zip |
wipefs: use xalloc lib
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Diffstat (limited to 'misc-utils/wipefs.c')
-rw-r--r-- | misc-utils/wipefs.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/misc-utils/wipefs.c b/misc-utils/wipefs.c index f79fa3c6e..92f410164 100644 --- a/misc-utils/wipefs.c +++ b/misc-utils/wipefs.c @@ -132,10 +132,7 @@ add_offset(struct wipe_desc *wp0, loff_t offset, int zap) wp = wp->next; } - wp = calloc(1, sizeof(struct wipe_desc)); - if (!wp) - err(EXIT_FAILURE, _("calloc failed")); - + wp = xcalloc(1, sizeof(struct wipe_desc)); wp->offset = offset; wp->next = wp0; wp->zap = zap; |