diff --git a/ChangeLog b/ChangeLog index 1ffd71298..3a132a601 100644 --- a/ChangeLog +++ b/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 diff --git a/src/main.c b/src/main.c index 2c574a86e..fe0b2e700 100644 --- a/src/main.c +++ b/src/main.c @@ -1132,4 +1132,4 @@ evl: #endif /* ~ SIMULATOR */ return sp_shutdown(EXIT_NORMAL); -} \ No newline at end of file +} diff --git a/src/misc/util.c b/src/misc/util.c index a4cbac32d..d2c9bc382 100644 --- a/src/misc/util.c +++ b/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--;