osutil: remove "inline" identifier from sdcard lock functions 42/29442/1
authorSeokYeon Hwang <syeon.hwang@samsung.com>
Tue, 28 Oct 2014 04:01:52 +0000 (13:01 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Tue, 28 Oct 2014 04:01:52 +0000 (13:01 +0900)
"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 <syeon.hwang@samsung.com>
tizen/src/util/osutil.c

index d0780e9a297800efa7f3e86da2974a0e68590af9..882cd09d9d89ea95c193db78674ffcae9c4c2288 100644 (file)
@@ -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);