[TSAM-639] Applied Tizen 3.0 coding rule 02/53602/1 accepted/tizen/mobile/20151208.125658 accepted/tizen/tv/20151208.125718 accepted/tizen/wearable/20151208.125736 submit/tizen/20151208.053208 submit/tizen_common/20151229.142028 submit/tizen_common/20151229.144031 submit/tizen_common/20151229.154718
authorYoung-Ae Kang <youngae.kang@samsung.com>
Tue, 8 Dec 2015 05:13:24 +0000 (14:13 +0900)
committerYoung-Ae Kang <youngae.kang@samsung.com>
Tue, 8 Dec 2015 05:15:36 +0000 (14:15 +0900)
Change-Id: I5bed64fed708bd045134b22fc8505fd5efc9d096

src/locations.c
test/location_test.c

index 3fe8cce..9cbdff0 100755 (executable)
@@ -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;
                }
index 78b9e9d..25dcc3b 100755 (executable)
@@ -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);
        }