From: Theodore Ts'o Date: Mon, 30 Jul 2012 19:46:26 +0000 (-0400) Subject: libext2fs: use abort() instead of perror()/exit() X-Git-Tag: v1.42.5.wc2~66 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=1b6de47f6510c1dafdcf6dd84ecadebd51eabd0b;p=tools%2Fe2fsprogs.git libext2fs: use abort() instead of perror()/exit() This simplifies the number of C library symbols needed by boot loader systems such as yaboot. Signed-off-by: "Theodore Ts'o" --- diff --git a/lib/ext2fs/blkmap64_rb.c b/lib/ext2fs/blkmap64_rb.c index e6b7e04..74140ec 100644 --- a/lib/ext2fs/blkmap64_rb.c +++ b/lib/ext2fs/blkmap64_rb.c @@ -134,10 +134,8 @@ static void rb_get_new_extent(struct bmap_rb_extent **ext, __u64 start, retval = ext2fs_get_mem(sizeof (struct bmap_rb_extent), &new_ext); - if (retval) { - perror("ext2fs_get_mem"); - exit(1); - } + if (retval) + abort(); new_ext->start = start; new_ext->count = count;