From c4012e5a7ace2e1f382c4d46f56e5749758c9a1a Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Thu, 6 Oct 2011 13:28:07 -0400 Subject: 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" --- misc/e2image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'misc') 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); -- cgit v1.2.3