summaryrefslogtreecommitdiff
path: root/src/static_libs/vg_common
diff options
context:
space:
mode:
authorYeongjong Lee <yj34.lee@samsung.com>2020-02-13 11:30:27 +0900
committerYeongjong Lee <yj34.lee@samsung.com>2020-02-13 11:31:00 +0900
commit17f0d23e3736fad04f1888e9611d00bb4b4b581e (patch)
tree7583b0196dbebf48f23784a1c0b85fa149caacc2 /src/static_libs/vg_common
parent2636853b7f4b3f630af1403fcaaadd638354a1ee (diff)
vg_common_json: use %zu for size_t
Summary: Fixes a compiler warning ``` ../src/static_libs/vg_common/vg_common_json.c: In function '_get_key_val': ../src/static_libs/vg_common/vg_common_json.c:16:34: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'unsigned int' [-Wformat=] ``` Test Plan: ninja build Reviewers: Hermet, jsuya Reviewed By: jsuya Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11327
Diffstat (limited to '')
-rw-r--r--src/static_libs/vg_common/vg_common_json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/static_libs/vg_common/vg_common_json.c b/src/static_libs/vg_common/vg_common_json.c
index a8f46832b8..2092b852a5 100644
--- a/src/static_libs/vg_common/vg_common_json.c
+++ b/src/static_libs/vg_common/vg_common_json.c
@@ -13,7 +13,7 @@ static char*
13_get_key_val(void *key) 13_get_key_val(void *key)
14{ 14{
15 static char buf[30]; 15 static char buf[30];
16 snprintf(buf, sizeof(buf), "%ld", (size_t) key); 16 snprintf(buf, sizeof(buf), "%zu", (size_t) key);
17 return buf; 17 return buf;
18} 18}
19 19