From c61acb85c928ec6c6a60eadd2551760070bd6046 Mon Sep 17 00:00:00 2001 From: SeokYeon Hwang Date: Tue, 28 Oct 2014 13:01:52 +0900 Subject: [PATCH] osutil: remove "inline" identifier from sdcard lock functions "make_sdcard_lock_posix()" and "remove_sdcard_lock_posix()" uses DEBUGCH for logging. It can produce compilation warnings because DEBUGCH macro access static variables. Change-Id: I9bc0d670d0751dd971b070e3a3ad8d2acbff97f4 Signed-off-by: SeokYeon Hwang --- tizen/src/util/osutil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tizen/src/util/osutil.c b/tizen/src/util/osutil.c index d0780e9a29..882cd09d9d 100644 --- a/tizen/src/util/osutil.c +++ b/tizen/src/util/osutil.c @@ -124,7 +124,7 @@ static int fd_unlock(int fd) return fcntl(fd, F_SETLK, &lock); } -inline bool make_sdcard_lock_posix(char *sdcard) +bool make_sdcard_lock_posix(char *sdcard) { char *lock_file = g_strdup_printf("%s.lck", sdcard); int fd = open(lock_file, O_CREAT|O_RDWR, 0666); @@ -144,7 +144,7 @@ inline bool make_sdcard_lock_posix(char *sdcard) return true; } -inline int remove_sdcard_lock_posix(char *sdcard) +int remove_sdcard_lock_posix(char *sdcard) { errno = 0; char *lock_file = g_strdup_printf("%s.lck", sdcard); -- 2.34.1