Sync with the latest code of phone profile
[platform/framework/web/data-provider-master.git] / util_liveinfo / src / node.c
index bbe9929..ae7da68 100644 (file)
@@ -65,7 +65,8 @@ char *node_to_abspath(const struct node *node)
 
 static inline int next_state(int from, char ch)
 {
-       switch (ch) {
+       switch (ch)
+       {
        case '\0':
        case '/':
                return 1;
@@ -73,7 +74,6 @@ static inline int next_state(int from, char ch)
                if (from == 1) {
                        return 2;
                }
-
                if (from == 2) {
                        return 3;
                }
@@ -90,7 +90,7 @@ static inline void abspath(const char* pBuffer, char* pRet)
        int src_idx = 0;
        int src_len = strlen(pBuffer);
        pRet[idx] = '/';
-       idx++;
+       idx ++;
 
        while (src_idx <= src_len) {
                from = state;
@@ -110,7 +110,7 @@ static inline void abspath(const char* pBuffer, char* pRet)
                                }
                        } else {
                                pRet[idx] = pBuffer[src_idx];
-                               idx ++;
+                               idx++;
                        }
                        break;
                case 3: