delete a space & use a tab 31/74631/1 accepted/tizen/common/20160615.194056 accepted/tizen/mobile/20160616.003658 accepted/tizen/tv/20160616.003605 accepted/tizen/wearable/20160616.003707 submit/tizen_common/20160615.072545 submit/tizen_mobile/20160615.072510 submit/tizen_tv/20160615.072513 submit/tizen_wearable/20160615.072538
authorjaekuk, lee <juku1999@samsung.com>
Wed, 15 Jun 2016 04:44:04 +0000 (13:44 +0900)
committerjaekuk, lee <juku1999@samsung.com>
Wed, 15 Jun 2016 04:44:04 +0000 (13:44 +0900)
Change-Id: I2fde5a71919b13db40163dc7fd04c9406c981e7a
Signed-off-by: jaekuk, lee <juku1999@samsung.com>
src/download-wrapping.c

index 8802ecd..a8837a7 100755 (executable)
@@ -37,7 +37,7 @@ LOGI(format, ##ARG); \
 #endif
 
 #define TELEPHONY_FEATURE      "tizen.org/feature/network.telephony"
-#define WIFI_FEATURE                   "tizen.org/feature/network.wifi"
+#define WIFI_FEATURE           "tizen.org/feature/network.wifi"
 #define WIFI_DIRECT_FEATURE    "tizen.org/feature/network.wifi.direct"
 
 /////////////////////// APIs /////////////////////////////////
@@ -105,28 +105,28 @@ int download_set_network_type(int download_id,
        system_info_get_platform_bool (WIFI_FEATURE, &bIsWifiFeatureSupported);
        system_info_get_platform_bool (WIFI_DIRECT_FEATURE, &bIsWifiDirectFeatureSupported);
 
-        switch (net_type) {
-            case DOWNLOAD_NETWORK_DATA_NETWORK:
-                if (!bIsTelephonyFeatureSupported) {
-                    return DOWNLOAD_ERROR_NOT_SUPPORTED;
-                }
-                break;
-            case DOWNLOAD_NETWORK_WIFI:
-                if (!bIsWifiFeatureSupported) {
-                    return DOWNLOAD_ERROR_NOT_SUPPORTED;
-                }
-            break;
-            case DOWNLOAD_NETWORK_WIFI_DIRECT:
-                if (!bIsWifiDirectFeatureSupported) {
-                    return DOWNLOAD_ERROR_NOT_SUPPORTED;
-                }
-            break;
-            case DOWNLOAD_NETWORK_ALL:
-                if (!bIsTelephonyFeatureSupported && !bIsWifiFeatureSupported && !bIsWifiDirectFeatureSupported) {
-                    return DOWNLOAD_ERROR_NOT_SUPPORTED;
-                }
-            break;
-        }
+       switch (net_type) {
+       case DOWNLOAD_NETWORK_DATA_NETWORK:
+               if (!bIsTelephonyFeatureSupported) {
+                       return DOWNLOAD_ERROR_NOT_SUPPORTED;
+               }
+               break;
+       case DOWNLOAD_NETWORK_WIFI:
+               if (!bIsWifiFeatureSupported) {
+                       return DOWNLOAD_ERROR_NOT_SUPPORTED;
+               }
+               break;
+       case DOWNLOAD_NETWORK_WIFI_DIRECT:
+               if (!bIsWifiDirectFeatureSupported) {
+                       return DOWNLOAD_ERROR_NOT_SUPPORTED;
+               }
+               break;
+       case DOWNLOAD_NETWORK_ALL:
+               if (!bIsTelephonyFeatureSupported && !bIsWifiFeatureSupported && !bIsWifiDirectFeatureSupported) {
+                       return DOWNLOAD_ERROR_NOT_SUPPORTED;
+               }
+               break;
+       }
 
        return dp_interface_set_network_type(download_id, (int)net_type);
 }