wipefs: use xalloc lib
PATCH 1/1 wipefs: use xalloc lib
From: Davidlohr Bueso <[email protected]>
Date: Wed, 14 Dec 2011 18:56:57 +0100
Signed-off-by Davidlohr Bueso <[email protected]>
--- misc-utils/wipefs.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-)
misc-utils/wipefs.c +1 -4
@@ -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;
Signature · 1 line
1.7.7.3
Quoted 2 lines · Davidlohr Bueso
misc-utils/wipefs.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-)
Applied, thanks.
Signature · 2 lines
Karel Zak <[email protected]> http://karelzak.blogspot.com