From 3b0695931dc145b5f1a8fc74035c104439f9f41f Mon Sep 17 00:00:00 2001 From: Seonah Moon Date: Mon, 7 Nov 2016 17:41:05 +0900 Subject: [PATCH] Apply coding rules Change-Id: I5d4eb8ecaf2bc0b297a978147eee2f6a0f99a0a9 Signed-off-by: Seonah Moon --- packaging/ug-setting-mobileap-efl.spec | 2 +- src/mh_popup.c | 24 +++++++------- src/mh_view_main.c | 44 +++++++++++++------------- 3 files changed, 35 insertions(+), 35 deletions(-) diff --git a/packaging/ug-setting-mobileap-efl.spec b/packaging/ug-setting-mobileap-efl.spec index 5ffad7d..3acae12 100755 --- a/packaging/ug-setting-mobileap-efl.spec +++ b/packaging/ug-setting-mobileap-efl.spec @@ -3,7 +3,7 @@ Name: ug-setting-mobileap-efl Summary: Tethering UI Gadget Library -Version: 1.0.149 +Version: 1.0.150 Release: 1 Group: App/Network License: Flora-1.1 diff --git a/src/mh_popup.c b/src/mh_popup.c index e24c25a..8f21c3f 100755 --- a/src/mh_popup.c +++ b/src/mh_popup.c @@ -640,18 +640,18 @@ void _create_security_restriction_noti(tethering_type_e type) int ret; switch (type) { - case TETHERING_TYPE_WIFI: - g_strlcpy(restricted_type, "wifi tethering", MAX_BUF_SIZE - 1); - break; - case TETHERING_TYPE_USB: - g_strlcpy(restricted_type, "usb tethering", MAX_BUF_SIZE - 1); - break; - case TETHERING_TYPE_BT: - g_strlcpy(restricted_type, "bt tethering", MAX_BUF_SIZE - 1); - break; - default: - ERR("Invalid type.\n"); - return; + case TETHERING_TYPE_WIFI: + g_strlcpy(restricted_type, "wifi tethering", MAX_BUF_SIZE - 1); + break; + case TETHERING_TYPE_USB: + g_strlcpy(restricted_type, "usb tethering", MAX_BUF_SIZE - 1); + break; + case TETHERING_TYPE_BT: + g_strlcpy(restricted_type, "bt tethering", MAX_BUF_SIZE - 1); + break; + default: + ERR("Invalid type.\n"); + return; } b = bundle_create(); diff --git a/src/mh_view_main.c b/src/mh_view_main.c index 9ac7f8e..cc5ee80 100755 --- a/src/mh_view_main.c +++ b/src/mh_view_main.c @@ -567,18 +567,18 @@ static int __is_allowed(tethering_type_e type) return 0; } - switch(type) { - case TETHERING_TYPE_WIFI: - dpm_restriction_get_wifi_hotspot_state(dpm, &state); - break; - case TETHERING_TYPE_USB: - dpm_restriction_get_usb_tethering_state(dpm, &state); - break; - case TETHERING_TYPE_BT: - dpm_restriction_get_bluetooth_tethering_state(dpm, &state); - break; - default: - break; + switch (type) { + case TETHERING_TYPE_WIFI: + dpm_restriction_get_wifi_hotspot_state(dpm, &state); + break; + case TETHERING_TYPE_USB: + dpm_restriction_get_usb_tethering_state(dpm, &state); + break; + case TETHERING_TYPE_BT: + dpm_restriction_get_bluetooth_tethering_state(dpm, &state); + break; + default: + break; } dpm_manager_destroy(dpm); @@ -1393,16 +1393,16 @@ static void __ctx_move_more_ctxpopup(Evas_Object *ctx, mh_appdata_t *ad) pos = elm_win_rotation_get(ad->win); switch (pos) { - case 0: - case 180: - evas_object_move(ctx, w/2, h); - break; - case 90: - evas_object_move(ctx, h/2, w); - break; - case 270: - evas_object_move(ctx, h/2, w); - break; + case 0: + case 180: + evas_object_move(ctx, w/2, h); + break; + case 90: + evas_object_move(ctx, h/2, w); + break; + case 270: + evas_object_move(ctx, h/2, w); + break; } __MOBILE_AP_FUNC_EXIT__; } -- 2.34.1