Fixed build error for llu format 04/63604/1 accepted/tizen/common/20160325.135531 accepted/tizen/ivi/20160325.032609 accepted/tizen/mobile/20160325.032519 accepted/tizen/tv/20160325.032535 accepted/tizen/wearable/20160325.032555 submit/tizen/20160325.004226
authorhyunuktak <hyunuk.tak@samsung.com>
Fri, 25 Mar 2016 00:32:05 +0000 (09:32 +0900)
committerhyunuktak <hyunuk.tak@samsung.com>
Fri, 25 Mar 2016 00:32:08 +0000 (09:32 +0900)
Change-Id: I20eac709dc5504abce5b96ed035d66d9f65fb5c1
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
packaging/net-config.spec
src/network-statistics.c

index f7564e0..86fab70 100755 (executable)
@@ -1,6 +1,6 @@
 Name:          net-config
 Summary:       TIZEN Network Configuration service
-Version:       1.1.61
+Version:       1.1.62
 Release:       2
 Group:         System/Network
 License:       Apache-2.0
index 7a02768..5d9e2d3 100755 (executable)
@@ -54,7 +54,7 @@ gboolean netconfig_wifi_get_bytes_statistics(guint64 *tx, guint64 *rx)
                goto endline;
 
        while (fgets(buf, sizeof(buf), fp)) {
-               guint64 llval;
+               long long unsigned int llval;
                gulong lval;
 
                p_ifname = buf;
@@ -70,7 +70,7 @@ gboolean netconfig_wifi_get_bytes_statistics(guint64 *tx, guint64 *rx)
                sscanf(p_entry,
                                "%llu %llu %lu %lu %lu %lu %lu %lu "
                                "%llu %llu %lu %lu %lu %lu %lu %lu",
-                               rx,                     /* rx bytes */
+                               (long long unsigned int *)rx, /* rx bytes */
                                &llval,         /* rx packet */
                                &lval,          /* rx errors */
                                &lval,          /* rx dropped */
@@ -79,7 +79,7 @@ gboolean netconfig_wifi_get_bytes_statistics(guint64 *tx, guint64 *rx)
                                &lval,          /* rx compressed */
                                &lval,          /* rx multicast */
 
-                               tx,                     /* tx bytes */
+                               (long long unsigned int *)tx, /* tx bytes */
                                &llval,         /* tx packet */
                                &lval,          /* tx errors */
                                &lval,          /* tx dropped */