From b1a888a023ebd3db472c060099b24612682c5678 Mon Sep 17 00:00:00 2001 From: Teruaki Kawashima Date: Tue, 7 Dec 2010 12:20:27 +0000 Subject: [PATCH] correct argument of open. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28756 a1c6a512-1295-4272-9138-f99709370657 --- firmware/common/rbpaths.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/firmware/common/rbpaths.c b/firmware/common/rbpaths.c index 50d6ccf6ec..c82e0f2dce 100644 --- a/firmware/common/rbpaths.c +++ b/firmware/common/rbpaths.c @@ -143,11 +143,10 @@ int app_open(const char *name, int o, ...) name = _get_user_file_path(name, flags, realpath, sizeof(realpath)); } va_start(ap, o); - fd = open(name, o, ap); + fd = open(name, o, va_arg(ap, unsigned int)); va_end(ap); return fd; - } int app_creat(const char* name, mode_t mode)