From: chleun.moon Date: Mon, 11 Sep 2017 04:43:20 +0000 (+0900) Subject: Fix coding rules X-Git-Tag: accepted/tizen/unified/20170913.071054~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F40%2F148840%2F1;p=platform%2Fcore%2Fconnectivity%2Fnet-config.git Fix coding rules Change-Id: I058b65eb8428fd3fa25560e53a14db24b38fb9b7 Signed-off-by: Cheoleun Moon --- diff --git a/include/log.h b/include/log.h index 0b4fb6a..e48fb5e 100755 --- a/include/log.h +++ b/include/log.h @@ -40,7 +40,7 @@ void log_cleanup(void); netconfig_log("%s(%d) "format"\n", __FUNCTION__, __LINE__, ## arg); \ } \ SLOG(level, NETCONFIG_TAG, format, ## arg); \ - } while(0) + } while (0) #define DBG(format, arg...) __LOG(LOG_DEBUG, format, ## arg) #define INFO(format, arg...) __LOG(LOG_INFO, format, ## arg) diff --git a/include/neterror.h b/include/neterror.h index 5e5fccd..59f9392 100755 --- a/include/neterror.h +++ b/include/neterror.h @@ -37,11 +37,11 @@ extern "C" { typedef enum { NETCONFIG_NO_ERROR = 0x00, - NETCONFIG_ERROR_INTERNAL = 0x01, - NETCONFIG_ERROR_NO_SERVICE = 0x02, - NETCONFIG_ERROR_TRASPORT = 0x03, - NETCONFIG_ERROR_NO_PROFILE = 0x04, - NETCONFIG_ERROR_WRONG_PROFILE = 0x05, + NETCONFIG_ERROR_INTERNAL = 0x01, + NETCONFIG_ERROR_NO_SERVICE = 0x02, + NETCONFIG_ERROR_TRASPORT = 0x03, + NETCONFIG_ERROR_NO_PROFILE = 0x04, + NETCONFIG_ERROR_WRONG_PROFILE = 0x05, NETCONFIG_ERROR_INPROGRESS = 0x06, NETCONFIG_ERROR_ALREADYEXISTS = 0x07, NETCONFIG_ERROR_INVALID_PARAMETER = 0x08, @@ -53,7 +53,7 @@ typedef enum { NETCONFIG_ERROR_FAILED_GET_SIM_AUTH_WRONG_DATA = 0x0E, NETCONFIG_ERROR_FAILED_GET_SIM_AUTH_DELAY = 0x0F, NETCONFIG_ERROR_FAILED_REQ_AKA_AUTH = 0x10, - NETCONFIG_ERROR_MAX = 0x11, + NETCONFIG_ERROR_MAX = 0x11, } netconfig_error_e; void netconfig_error_no_profile(GDBusMethodInvocation *context); diff --git a/include/network-monitor.h b/include/network-monitor.h index 16ed406..5155eb5 100755 --- a/include/network-monitor.h +++ b/include/network-monitor.h @@ -24,17 +24,17 @@ extern "C" { #endif -#define ETH_REG_BMSR 0x01 +#define ETH_REG_BMSR 0x01 #define BMSR_LINK_VALID 0x0004 #define SIOCGMIIPHY 0x8947 /* Get address of MII PHY in use. */ #define SIOCGMIIREG 0x8948 /* Read MII PHY register. */ struct _stMData { - unsigned short phy_id; - unsigned short reg_num; - unsigned short val_in; - unsigned short val_out; + unsigned short phy_id; + unsigned short reg_num; + unsigned short val_in; + unsigned short val_out; }; int netconfig_ethernet_cable_plugin_status_check(); diff --git a/include/wifi-state.h b/include/wifi-state.h index f524706..7e1e453 100755 --- a/include/wifi-state.h +++ b/include/wifi-state.h @@ -55,7 +55,7 @@ void wifi_state_update_power_state(gboolean powered); void wifi_state_emit_power_completed(gboolean power_on); void wifi_state_emit_power_failed(void); -char *wifi_get_favorite_service(void); +char *wifi_get_favorite_service(void); void wifi_start_timer_network_notification(void); void wifi_state_notifier_register(wifi_state_notifier *notifier);