From 956dfff1aed2bd742d8d8042a19e6f48072fb186 Mon Sep 17 00:00:00 2001 From: hyunuktak Date: Wed, 2 Dec 2015 10:48:34 +0900 Subject: [PATCH] Fix some svace issues Signed-off-by: hyunuktak Change-Id: I8cabe0b8ad3076caa595ec016c4873503d5235ea --- packaging/capi-network-connection.spec | 2 +- src/connection.c | 2 +- src/connection_profile.c | 2 -- src/libnetwork.c | 3 ++- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/packaging/capi-network-connection.spec b/packaging/capi-network-connection.spec index 68b3c6e..5c94722 100755 --- a/packaging/capi-network-connection.spec +++ b/packaging/capi-network-connection.spec @@ -1,6 +1,6 @@ Name: capi-network-connection Summary: Network Connection library in TIZEN C API -Version: 1.0.74 +Version: 1.0.75 Release: 1 Group: System/Network License: Apache-2.0 diff --git a/src/connection.c b/src/connection.c index ce5421c..304deca 100755 --- a/src/connection.c +++ b/src/connection.c @@ -1198,7 +1198,7 @@ static int __get_cellular_statistic(connection_statistics_type_e statistics_type return CONNECTION_ERROR_OPERATION_FAILED; } - *llsize = (long long)(last_size * 1000 + size * 1000); + *llsize = (long long)(last_size * 1000) + (long long)(size * 1000); CONNECTION_LOG(CONNECTION_INFO,"%lld bytes", *llsize); return CONNECTION_ERROR_NONE; diff --git a/src/connection_profile.c b/src/connection_profile.c index 3005b69..188c947 100755 --- a/src/connection_profile.c +++ b/src/connection_profile.c @@ -448,8 +448,6 @@ EXPORT_API int connection_profile_get_state(connection_profile_h profile, connec net_profile_info_t *profile_info = profile; *state = _profile_convert_to_cp_state(profile_info->ProfileState); - if (*state < 0) - return CONNECTION_ERROR_OPERATION_FAILED; return CONNECTION_ERROR_NONE; } diff --git a/src/libnetwork.c b/src/libnetwork.c index cda1205..daf7bff 100755 --- a/src/libnetwork.c +++ b/src/libnetwork.c @@ -1563,10 +1563,11 @@ int _connection_check_feature_supported(const char *feature_name, ...) if (!feature_supported) { CONNECTION_LOG(CONNECTION_ERROR, "Error - Feature is not supported"); set_last_result(CONNECTION_ERROR_NOT_SUPPORTED); + va_end(list); return CONNECTION_ERROR_NOT_SUPPORTED; } - va_end(list); + va_end(list); set_last_result(CONNECTION_ERROR_NONE); return CONNECTION_ERROR_NONE; } -- 2.7.4