Fix build error (inline fail)
authorSung-jae Park <nicesj.park@samsung.com>
Sat, 21 Dec 2013 11:38:04 +0000 (20:38 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Sat, 21 Dec 2013 11:38:04 +0000 (20:38 +0900)
Change-Id: Ifc0e25608552867482a948bce0f5041228698cd0

pkgmgr_livebox/src/service_register.c
src/io.c
util_liveinfo/src/liveinfo.c

index 60a5272..4ebfe31 100644 (file)
@@ -2744,7 +2744,7 @@ errout:
        return ret;
 }
 
-static inline int pkglist_get_via_callback(const char *appid, void (*cb)(const char *appid, const char *pkgid, int prime, void *data), void *data)
+static int pkglist_get_via_callback(const char *appid, void (*cb)(const char *appid, const char *pkgid, int prime, void *data), void *data)
 {
        const char *dml = "SELECT pkgid, prime FROM pkgmap WHERE appid = ?";
        int ret;
index 7cec087..fb6e732 100644 (file)
--- a/src/io.c
+++ b/src/io.c
@@ -48,12 +48,12 @@ static struct {
        .handle = NULL,
 };
 
-static inline int load_abi_table(void)
+static int load_abi_table(void)
 {
        FILE *fp;
        int ch;
-       int idx;
-       int tag_id;
+       int idx = 0;
+       int tag_id = 0;
        enum {
                INIT = 0x0,
                GROUP = 0x1,
@@ -68,7 +68,7 @@ static inline int load_abi_table(void)
                "package",
                NULL,
        };
-       const char *ptr;
+       const char *ptr = NULL;
 
        char group[MAX_ABI + 1];
        char pkgname[MAX_PKGNAME + 1];
index d01f00f..fc79bf6 100644 (file)
@@ -560,7 +560,7 @@ static void send_inst_list(const char *pkgname)
        s_info.age++;
 }
 
-static inline void help(void)
+static void help(void)
 {
        printf("liveinfo - Livebox utility\n");
        printf("------------------------------ [Option] ------------------------------\n");