summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjunkyu han <junkyu.han@samsung.com>2018-05-11 18:37:17 +0900
committerjunkyu han <junkyu.han@samsung.com>2018-05-11 18:37:17 +0900
commitc70bb383f83da22710cc7f3d37970035b748ff14 (patch)
tree4eb8479664b8b2346594b039027b2494f36d6493
parent0b9223b8bff109e6da245767a742ee4dcea972c2 (diff)
parentbaf45e950f50a4b0c6081773297cd7bdba7c9f5c (diff)
downloadrcc-c70bb383f83da22710cc7f3d37970035b748ff14.tar.gz
rcc-c70bb383f83da22710cc7f3d37970035b748ff14.tar.bz2
rcc-c70bb383f83da22710cc7f3d37970035b748ff14.zip
Merge remote-tracking branch 'temp/master'
-rw-r--r--src/connectivity.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/connectivity.c b/src/connectivity.c
index b9c32bb..8123de8 100644
--- a/src/connectivity.c
+++ b/src/connectivity.c
@@ -382,13 +382,13 @@ static bool __print_attributes_cb(iotcon_attributes_h attributes, const char *ke
iotcon_attributes_get_double(attributes, key, &value);
_D("key[%s] - double value [%lf]", key, value);
}
- break;
+ break;
case IOTCON_TYPE_STR: {
char *value = 0;
iotcon_attributes_get_str(attributes, key, &value);
_D("key[%s] - string value [%s]", key, value);
}
- break;
+ break;
case IOTCON_TYPE_NONE:
case IOTCON_TYPE_BYTE_STR:
case IOTCON_TYPE_NULL:
@@ -589,8 +589,9 @@ static inline void __noti_by_http(void)
else
_E("fail to get url");
free(json_data);
- } else
+ } else {
_E("fail to get json_data");
+ }
return;
}
@@ -1250,14 +1251,14 @@ int connectivity_set_protocol(connectivity_protocol_e protocol_type)
case CONNECTIVITY_PROTOCOL_DEFAULT:
case CONNECTIVITY_PROTOCOL_IOTIVITY:
if (connectivity_iotcon_intialized) {
- _E("protocol type[%d] aleady initialized", protocol_type);
+ _E("protocol type[%d] already initialized", protocol_type);
return -1;
}
ProtocolType = CONNECTIVITY_PROTOCOL_IOTIVITY;
break;
case CONNECTIVITY_PROTOCOL_HTTP:
if (connectivity_http_intialized) {
- _E("protocol type[%d] aleady initialized", protocol_type);
+ _E("protocol type[%d] already initialized", protocol_type);
return -1;
}
ProtocolType = CONNECTIVITY_PROTOCOL_HTTP;