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 /misc | |
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 'misc')
-rw-r--r-- | misc/e2image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/e2image.c b/misc/e2image.c index c108a7a2..23a4df27 100644 --- a/misc/e2image.c +++ b/misc/e2image.c @@ -1178,7 +1178,7 @@ static void install_image(char *device, char *image_fn, int type) exit(1); } - fd = ext2fs_open_file(image_fn, O_RDONLY); + fd = ext2fs_open_file(image_fn, O_RDONLY, 0); if (fd < 0) { perror(image_fn); exit(1); |