projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b248697
)
stat_line_valid(): use the FOR_EACH_STAT_ITEM macro
author
Andre
<maan@p133.(none)>
Sun, 26 Mar 2006 23:23:42 +0000
(
01:23
+0200)
committer
Andre
<maan@p133.(none)>
Sun, 26 Mar 2006 23:23:42 +0000
(
01:23
+0200)
stat.c
patch
|
blob
|
history
diff --git
a/stat.c
b/stat.c
index ac5fe8c84bb0b45dafaa752e9692986b89a7728f..536807dc483f7353566ec1853ba8696598e517e7 100644
(file)
--- a/
stat.c
+++ b/
stat.c
@@
-216,7
+216,7
@@
int stat_line_valid(const char *line)
if (!line || !*line)
return -E_UNKNOWN_STAT_ITEM;
line_len = strlen(line);
-
for (i = 0; i < NUM_STAT_ITEMS; i++
) {
+
FOR_EACH_STAT_ITEM(i
) {
const char *s = status_item_list[i];
size_t item_len = strlen(s);