From: kj7.sung Date: Thu, 17 Mar 2016 05:52:46 +0000 (+0900) Subject: [ACR-542] Remove unused return value from header X-Git-Tag: accepted/tizen/common/20160324.173015~1 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fapi%2Flocation-manager.git;a=commitdiff_plain;h=9ea472ea399bd020e3bcbdee851c0951e601b77a [ACR-542] Remove unused return value from header Signed-off-by: kj7.sung Change-Id: Ia61b2eac4fef5f7b77f4400d6c58ee3bbeaf379f --- diff --git a/include/locations.h b/include/locations.h index f6e8882..dd55624 100755 --- a/include/locations.h +++ b/include/locations.h @@ -1045,7 +1045,6 @@ int gps_status_set_satellite_updated_cb(location_manager_h manager, gps_status_s * @return @c 0 on success, otherwise a negative error value * @retval #LOCATIONS_ERROR_NONE Successful * @retval #LOCATIONS_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #LOCATIONS_ERROR_ACCESSIBILITY_NOT_ALLOWED The application does not have the privilege to call this method * @retval #LOCATIONS_ERROR_NOT_SUPPORTED Not supported * @see gps_status_set_satellite_updated_cb() */ diff --git a/src/locations.c b/src/locations.c index 124ee3d..6b94d04 100755 --- a/src/locations.c +++ b/src/locations.c @@ -1321,7 +1321,14 @@ EXPORT_API int gps_status_set_satellite_updated_cb(location_manager_h manager, g LOCATIONS_NULL_ARG_CHECK(callback); location_manager_s *handle = (location_manager_s *) manager; - location_set_option(handle->object, "USE_SV"); + int ret = location_set_option(handle->object, "USE_SV"); + if (ret != LOCATION_ERROR_NONE) { + if (ret == LOCATION_ERROR_NOT_ALLOWED) { + LOCATIONS_LOGE("LOCATIONS_ERROR_ACCESSIBILITY_NOT_ALLOWED"); + return LOCATIONS_ERROR_ACCESSIBILITY_NOT_ALLOWED; + } + return ret; + } g_object_set(handle->object, "sat-interval", interval, NULL); return __set_callback(_LOCATIONS_EVENT_TYPE_SATELLITE, manager, callback, user_data); }