From: SeokYeon Hwang Date: Tue, 28 Oct 2014 04:01:52 +0000 (+0900) Subject: osutil: remove "inline" identifier from sdcard lock functions X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.2~629^2~17^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F42%2F29442%2F1;p=sdk%2Femulator%2Fqemu.git 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 --- 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);