polish to prevent warning
This commit is contained in:
parent
08da4e6c56
commit
530cb059fe
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1132,4 +1132,4 @@ evl:
|
|||
#endif /* ~ SIMULATOR */
|
||||
|
||||
return sp_shutdown(EXIT_NORMAL);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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--;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue