diff options
author | Theodore Ts'o <tytso@mit.edu> | 2011-10-06 13:28:07 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-10-06 13:28:07 -0400 |
commit | c4012e5a7ace2e1f382c4d46f56e5749758c9a1a (patch) | |
tree | 9b8a94b2dd9af030174a780a33f888027d591c60 /lib/ext2fs/unix_io.c | |
parent | f123e665496ad9f06b4a1da9e863364d8f224941 (diff) | |
download | e2fsprogs-c4012e5a7ace2e1f382c4d46f56e5749758c9a1a.tar.gz |
libext2fs: make ext2fs_open_file() always use 3 arguments instead of varargs
Some architectures have narrow mode_t's which can cause some
portability warnings with varargs.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'lib/ext2fs/unix_io.c')
-rw-r--r-- | lib/ext2fs/unix_io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ext2fs/unix_io.c b/lib/ext2fs/unix_io.c index 787990d7..53370224 100644 --- a/lib/ext2fs/unix_io.c +++ b/lib/ext2fs/unix_io.c @@ -486,7 +486,7 @@ static errcode_t unix_open(const char *name, int flags, io_channel *channel) #endif data->flags = flags; - data->dev = ext2fs_open_file(io->name, open_flags); + data->dev = ext2fs_open_file(io->name, open_flags, 0); if (data->dev < 0) { retval = errno; goto cleanup; |