diff options
author | Denis Vlasenko | 2006-09-09 12:24:19 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-09-09 12:24:19 +0000 |
commit | 9cac521f07550764e94c469d70b22ad5c194855a (patch) | |
tree | 98f3e605a5b17bffc9e1f087907bf15049d6e717 /e2fsprogs | |
parent | 3526a1320a7e70be0def06a31b65ffff3430510b (diff) | |
download | busybox-9cac521f07550764e94c469d70b22ad5c194855a.zip busybox-9cac521f07550764e94c469d70b22ad5c194855a.tar.gz |
using [xa]sprintf for string concatenation is neat and saves
~100 bytes according to bloatcheck. Also this fixes bug in rpm
Diffstat (limited to 'e2fsprogs')
-rw-r--r-- | e2fsprogs/ext2fs/mkjournal.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/e2fsprogs/ext2fs/mkjournal.c b/e2fsprogs/ext2fs/mkjournal.c index c23ed90..5bdd346 100644 --- a/e2fsprogs/ext2fs/mkjournal.c +++ b/e2fsprogs/ext2fs/mkjournal.c @@ -322,8 +322,9 @@ errcode_t ext2fs_add_journal_inode(ext2_filsys fs, blk_t size, int flags) char jfile[1024]; int fd, mount_flags, f; - if ((retval = ext2fs_check_mount_point(fs->device_name, &mount_flags, - jfile, sizeof(jfile)-10))) + retval = ext2fs_check_mount_point(fs->device_name, &mount_flags, + jfile, sizeof(jfile)-10); + if (retval) return retval; if (mount_flags & EXT2_MF_MOUNTED) { |