using [xa]sprintf for string concatenation is neat and saves
~100 bytes according to bloatcheck. Also this fixes bug in rpm
This commit is contained in:
parent
3526a1320a
commit
9cac521f07
6 changed files with 10 additions and 13 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue