X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=util_liveinfo%2Fsrc%2Fnode.c;h=ae7da6866bc6ed9a2d47c813fd33b137263d4bc4;hb=f4536685328b428bfa8816032a372c176ab1e166;hp=bbe99290ef571f301da39e9143973c172c074780;hpb=7847ba08056208eb59bfa2fd19f0f2fd960f5320;p=platform%2Fframework%2Fweb%2Fdata-provider-master.git diff --git a/util_liveinfo/src/node.c b/util_liveinfo/src/node.c index bbe9929..ae7da68 100644 --- a/util_liveinfo/src/node.c +++ b/util_liveinfo/src/node.c @@ -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: