Whamcloud - gitweb
libext2fs: use abort() instead of perror()/exit()
authorTheodore Ts'o <tytso@mit.edu>
Mon, 30 Jul 2012 19:46:26 +0000 (15:46 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 30 Jul 2012 19:46:26 +0000 (15:46 -0400)
This simplifies the number of C library symbols needed by boot loader
systems such as yaboot.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/ext2fs/blkmap64_rb.c

index e6b7e04..74140ec 100644 (file)
@@ -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;