From cca1c9d93802383104868959cda8c0d4df51859d Mon Sep 17 00:00:00 2001 From: hyunuktak Date: Fri, 25 Mar 2016 09:32:05 +0900 Subject: [PATCH] Fixed build error for llu format Change-Id: I20eac709dc5504abce5b96ed035d66d9f65fb5c1 Signed-off-by: hyunuktak --- packaging/net-config.spec | 2 +- src/network-statistics.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packaging/net-config.spec b/packaging/net-config.spec index f7564e0..86fab70 100755 --- a/packaging/net-config.spec +++ b/packaging/net-config.spec @@ -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 diff --git a/src/network-statistics.c b/src/network-statistics.c index 7a02768..5d9e2d3 100755 --- a/src/network-statistics.c +++ b/src/network-statistics.c @@ -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 */ -- 2.34.1