* [PATCH] wipefs: use xalloc lib
@ 2011-12-14 17:58 Davidlohr Bueso
2011-12-16 11:47 ` Karel Zak
0 siblings, 1 reply; 2+ messages in thread
From: Davidlohr Bueso @ 2011-12-14 17:58 UTC (permalink / raw)
To: Karel Zak; +Cc: util-linux
From: Davidlohr Bueso <dave@gnu.org>
Date: Wed, 14 Dec 2011 18:56:57 +0100
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
---
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 f79fa3c..92f4101 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;
--
1.7.7.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] wipefs: use xalloc lib
2011-12-14 17:58 [PATCH] wipefs: use xalloc lib Davidlohr Bueso
@ 2011-12-16 11:47 ` Karel Zak
0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2011-12-16 11:47 UTC (permalink / raw)
To: Davidlohr Bueso; +Cc: util-linux
On Wed, Dec 14, 2011 at 06:58:26PM +0100, Davidlohr Bueso wrote:
> misc-utils/wipefs.c | 5 +----
> 1 files changed, 1 insertions(+), 4 deletions(-)
Applied, thanks.
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-12-16 11:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-14 17:58 [PATCH] wipefs: use xalloc lib Davidlohr Bueso
2011-12-16 11:47 ` Karel Zak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).