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

View File

@ -1,3 +1,6 @@
2008-10-14 Dietmar Warning
* src/main.c, src/misc/util.c polish to prevent warnings
2008-10-11 Holger Vogt
* /frontend/resource.c line 41 correct __MINGW32__
/ciderlib/input/options.c renamed to optionsc.c to avoid double options.obj in VC++ 2008

View File

@ -1132,4 +1132,4 @@ evl:
#endif /* ~ SIMULATOR */
return sp_shutdown(EXIT_NORMAL);
}
}

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--;