* Code cleanup:
- remove trailing white space, trailing empty lines, C++ comments, etc.
- split cmd_boot.c (separate cmd_bdinfo.c and cmd_load.c)
* Patches by Kenneth Johansson, 25 Jun 2003:
- major rework of command structure
(work done mostly by Michal Cendrowski and Joakim Kristiansen)
diff --git a/lib_generic/string.c b/lib_generic/string.c
index f4d2457..d06a645 100644
--- a/lib_generic/string.c
+++ b/lib_generic/string.c
@@ -207,8 +207,8 @@
{
const char *p = s + strlen(s);
do {
- if (*p == (char)c)
- return (char *)p;
+ if (*p == (char)c)
+ return (char *)p;
} while (--p >= s);
return NULL;
}
@@ -498,7 +498,7 @@
p++;
size--;
}
- return (void *) p;
+ return (void *) p;
}
#endif
@@ -540,7 +540,7 @@
{
const unsigned char *p = s;
while (n-- != 0) {
- if ((unsigned char)c == *p++) {
+ if ((unsigned char)c == *p++) {
return (void *)(p-1);
}
}