Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9835dba
)
libext2fs: use abort() instead of perror()/exit()
author
Theodore Ts'o
<tytso@mit.edu>
Mon, 30 Jul 2012 19:46:26 +0000
(15:46 -0400)
committer
Theodore 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
patch
|
blob
|
history
diff --git
a/lib/ext2fs/blkmap64_rb.c
b/lib/ext2fs/blkmap64_rb.c
index
e6b7e04
..
74140ec
100644
(file)
--- 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;