Apply conding rule 50/63950/1
authorsung.goo.kim <sung.goo.kim@samsung.com>
Tue, 29 Mar 2016 03:53:26 +0000 (12:53 +0900)
committersung.goo.kim <sung.goo.kim@samsung.com>
Tue, 29 Mar 2016 03:53:46 +0000 (12:53 +0900)
Change-Id: I12c418091c2495368825301ea5525dd269a80cc6

common/ic-log.h
lib/include/iotcon-constant.h
lib/include/iotcon-errors.h
test/test.h

index d076da1..d2c8d06 100644 (file)
                if (expr) { \
                        ERR("(%s)", #expr); \
                        return; \
-               }\
-       } while(0)
+               } \
+       } while (0)
 
 #define RETV_IF(expr, val) \
-       do {\
+       do { \
                if (expr) { \
                        ERR("(%s)", #expr); \
                        return (val); \
                } \
-       } while(0)
+       } while (0)
 
 #define RETM_IF(expr, fmt, arg...) \
-       do {\
+       do { \
                if (expr) { \
                        ERR(fmt, ##arg); \
                        return; \
-               }\
-       } while(0)
+               } \
+       } while (0)
 
 #define RETVM_IF(expr, val, fmt, arg...) \
-       do {\
+       do { \
                if (expr) { \
                        ERR(fmt, ##arg); \
                        return (val); \
                } \
-       } while(0)
+       } while (0)
 
 #define ERR_IF(expr) \
        do { \
index 1d5c226..2d3b3be 100644 (file)
@@ -175,9 +175,9 @@ typedef enum {
  * @since_tizen 3.0
  */
 typedef enum  {
-    IOTCON_PRESENCE_RESOURCE_CREATED, /**< Indicates for resource creation operation of server */
-    IOTCON_PRESENCE_RESOURCE_UPDATED, /**< Indicates for resource update operation of server */
-    IOTCON_PRESENCE_RESOURCE_DESTROYED, /**< Indicates for resource destruction operation of server */
+       IOTCON_PRESENCE_RESOURCE_CREATED, /**< Indicates for resource creation operation of server */
+       IOTCON_PRESENCE_RESOURCE_UPDATED, /**< Indicates for resource update operation of server */
+       IOTCON_PRESENCE_RESOURCE_DESTROYED, /**< Indicates for resource destruction operation of server */
 } iotcon_presence_trigger_e;
 
 /**
index 602ebee..116f203 100644 (file)
@@ -33,8 +33,7 @@
  *
  * @{
  */
-typedef enum
-{
+typedef enum {
        IOTCON_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */
        IOTCON_ERROR_IO_ERROR = TIZEN_ERROR_IO_ERROR, /**< I/O error */
        IOTCON_ERROR_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY, /**< Out of memory */
@@ -49,7 +48,7 @@ typedef enum
        IOTCON_ERROR_ALREADY = TIZEN_ERROR_IOTCON | 0x04, /**< Already */
        IOTCON_ERROR_DBUS = TIZEN_ERROR_IOTCON | 0x05, /**< D-Bus errors */
        IOTCON_ERROR_SYSTEM = TIZEN_ERROR_IOTCON | 0x06, /**< System errors */
-}iotcon_error_e;
+} iotcon_error_e;
 
 /**
  * @}
index 7901c8f..312ef04 100644 (file)
                if (expr) { \
                        ERR("(%s)", #expr); \
                        return; \
-               }\
-       } while(0)
+               } \
+       } while (0)
 
 #define RETV_IF(expr, val) \
-       do {\
+       do { \
                if (expr) { \
                        ERR("(%s)", #expr); \
                        return (val); \
                } \
-       } while(0)
+       } while (0)
 
 #define RETM_IF(expr, fmt, arg...) \
-       do {\
+       do { \
                if (expr) { \
                        ERR(fmt, ##arg); \
                        return; \
-               }\
-       } while(0)
+               } \
+       } while (0)
 
 #define RETVM_IF(expr, val, fmt, arg...) \
-       do {\
+       do { \
                if (expr) { \
                        ERR(fmt, ##arg); \
                        return (val); \
                } \
-       } while(0)
+       } while (0)
 
 #define ERR_IF(expr) \
        do { \