summaryrefslogtreecommitdiffstats
path: root/binding/network-util.c
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2019-06-19 12:19:57 -0700
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2019-06-20 16:20:22 +0000
commitb43478c07243f63b662f881c5c11c9ff9021cfe9 (patch)
tree9cef9161bbfe3cf07b57683a66a56b2df6647f93 /binding/network-util.c
parenta959a7a547a0f3dcc61c5a00ee6ef0652c54788f (diff)
binding: network: fix conversion compiler warnings
Remove follow warnings by switching from int to size_t warning: conversion from ‘size_t’ {aka ‘long unsigned int’} to ‘int’ may change value [-Wconversion] Bug-AGL: SPEC-2535 Change-Id: I03bb459454d49d9771bc1101338e80c3f394a00e Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'binding/network-util.c')
-rw-r--r--binding/network-util.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/binding/network-util.c b/binding/network-util.c
index 7e0aa48..f5a0d41 100644
--- a/binding/network-util.c
+++ b/binding/network-util.c
@@ -58,7 +58,8 @@ int str2boolean(const char *value)
json_object *json_object_copy(json_object *jval)
{
json_object *jobj;
- int i, len;
+ size_t len;
+ int i;
/* handle NULL */
if (!jval)
@@ -672,7 +673,8 @@ GVariant *property_json_to_gvariant(
double d;
const char *jvalstr, *str;
char c;
- int i, len;
+ size_t len;
+ int i;
gboolean is_config;
if (!fmt)
@@ -912,7 +914,8 @@ GVariant *property_json_to_gvariant(
json_object *get_property_collect(json_object *jreqprop, json_object *jprop,
GError **error)
{
- int i, len;
+ int i;
+ size_t len;
json_object *jkey, *jval, *jobj = NULL, *jobjval;
const char *key;