projects
/
platform
/
framework
/
web
/
data-provider-master.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Sync with the latest code of phone profile
[platform/framework/web/data-provider-master.git]
/
util_liveinfo
/
src
/
node.c
diff --git
a/util_liveinfo/src/node.c
b/util_liveinfo/src/node.c
index
bbe9929
..
ae7da68
100644
(file)
--- 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)
{
static inline int next_state(int from, char ch)
{
- switch (ch) {
+ switch (ch)
+ {
case '\0':
case '/':
return 1;
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 == 1) {
return 2;
}
-
if (from == 2) {
return 3;
}
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] = '/';
int src_idx = 0;
int src_len = strlen(pBuffer);
pRet[idx] = '/';
- idx++;
+ idx
++;
while (src_idx <= src_len) {
from = state;
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];
}
} else {
pRet[idx] = pBuffer[src_idx];
- idx
++;
+ idx++;
}
break;
case 3:
}
break;
case 3: