Browse Source

polish to prevent warning

pre-master-46
dwarning 18 years ago
parent
commit
530cb059fe
  1. 3
      ChangeLog
  2. 2
      src/main.c
  3. 6
      src/misc/util.c

3
ChangeLog

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

2
src/main.c

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

6
src/misc/util.c

@ -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…
Cancel
Save