polish to prevent warning

This commit is contained in:
dwarning
2008-10-14 19:59:23 +00:00
parent 08da4e6c56
commit 530cb059fe
3 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -1132,4 +1132,4 @@ evl:
#endif /* ~ SIMULATOR */
return sp_shutdown(EXIT_NORMAL);
}
}
+3 -3
View File
@@ -217,9 +217,9 @@ dirname(const char *name)
len = strlen(name);
p = &name[len - 1];
if (*p == '/') p--; // skip the trailing /
if (*p == '/') p--; /* skip the trailing / */
if (*p == '\\') p--; // skip the trailing \
if (*p == '\\') p--; /* skip the trailing \ */
while (p != name && *p != '/' && *p != '\\') p--;
@@ -264,7 +264,7 @@ dirname(const char *name)
len = strlen(name);
p = &name[len - 1];
if (*p == '/') p--; // skip the trailing /
if (*p == '/') p--; /* skip the trailing / */
while (p != name && *p != '/') p--;