From b0c7210aab7d8758a301a7e05765d4cb2010e14b Mon Sep 17 00:00:00 2001 From: Young-Ae Kang Date: Tue, 8 Dec 2015 14:13:24 +0900 Subject: [PATCH] [TSAM-639] Applied Tizen 3.0 coding rule Change-Id: I5bed64fed708bd045134b22fc8505fd5efc9d096 --- src/locations.c | 7 +++---- test/location_test.c | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/locations.c b/src/locations.c index 3fe8cce..9cbdff0 100755 --- a/src/locations.c +++ b/src/locations.c @@ -135,7 +135,7 @@ static void __cb_service_disabled(GObject *self, guint status, gpointer userdata location_manager_s *handle = (location_manager_s *) userdata; if (handle->user_cb[_LOCATIONS_EVENT_TYPE_SERVICE_STATE]) ((location_service_state_changed_cb) - handle->user_cb[_LOCATIONS_EVENT_TYPE_SERVICE_STATE])(LOCATIONS_SERVICE_DISABLED,handle->user_data[_LOCATIONS_EVENT_TYPE_SERVICE_STATE]); + handle->user_cb[_LOCATIONS_EVENT_TYPE_SERVICE_STATE])(LOCATIONS_SERVICE_DISABLED, handle->user_data[_LOCATIONS_EVENT_TYPE_SERVICE_STATE]); } static int __compare_position(gconstpointer a, gconstpointer b) @@ -430,12 +430,11 @@ EXPORT_API int location_manager_enable_method(const location_method_e method, co } return LOCATIONS_ERROR_NONE; - } else { + } else { if ((LOCATIONS_METHOD_GPS == method) && (__is_gps_supported() == LOCATIONS_ERROR_NOT_SUPPORTED)) { LOCATIONS_LOGE("LOCATIONS_ERROR_NOT_SUPPORTED(0x%08x)", LOCATIONS_ERROR_NOT_SUPPORTED); return LOCATIONS_ERROR_NOT_SUPPORTED; - } - else if ((LOCATIONS_METHOD_WPS == method) && (__is_wps_supported() == LOCATIONS_ERROR_NOT_SUPPORTED)) { + } else if ((LOCATIONS_METHOD_WPS == method) && (__is_wps_supported() == LOCATIONS_ERROR_NOT_SUPPORTED)) { LOCATIONS_LOGE("LOCATIONS_ERROR_NOT_SUPPORTED(0x%08x)", LOCATIONS_ERROR_NOT_SUPPORTED); return LOCATIONS_ERROR_NOT_SUPPORTED; } diff --git a/test/location_test.c b/test/location_test.c index 78b9e9d..25dcc3b 100755 --- a/test/location_test.c +++ b/test/location_test.c @@ -566,7 +566,7 @@ static int location_test() location_coord_list[2].latitude = 30; location_coord_list[2].longitude = 10; - //Checking coordinates in location boundary + /* Checking coordinates in location boundary */ location_coords_s testLocationCoordinates; testLocationCoordinates.latitude = 20; testLocationCoordinates.longitude = 12; @@ -574,7 +574,7 @@ static int location_test() fprintf(stderr, "location_bounds_create_polygon: %d\n", nRet); - bIsContained = location_bounds_contains_coordinates(hPolyLocationBound, testLocationCoordinates);// Target API + bIsContained = location_bounds_contains_coordinates(hPolyLocationBound, testLocationCoordinates); fprintf(stderr, "bIsContained: %d\n", bIsContained); location_bounds_destroy(hPolyLocationBound); @@ -603,8 +603,7 @@ static int location_test() ret = location_manager_set_position_updated_cb(manager, _position_updated_cb, interval, (void *)manager); fprintf(stderr, "set_position_updated_cb: %d\n", ret); } - } - else { + } else { test_timer = g_timeout_add_seconds(1, wait_test, NULL); } -- 2.7.4