Browse Source

preserve const'ness of some casts

rlar 14 years ago
parent
commit
d04f0948d6
  1. 5
      ChangeLog
  2. 4
      src/frontend/vectors.c
  3. 4
      src/misc/wlist.c

5
ChangeLog

@ -1,3 +1,8 @@
2012-02-06 Robert Larice
* src/frontend/vectors.c ,
* src/misc/wlist.c :
preserve const'ness of some casts
2012-02-06 Robert Larice
* src/frontend/numparam/spicenum.c :
drop (void*) cast of the dispose() argument

4
src/frontend/vectors.c

@ -145,8 +145,8 @@ namecmp(const void *a, const void *b)
{
int i, j;
char *s = (char *) a;
char *t = (char *) b;
const char *s = (const char *) a;
const char *t = (const char *) b;
for (;;) {
while ((*s == *t) && !isdigit(*s) && *s)
s++, t++;

4
src/misc/wlist.c

@ -228,8 +228,8 @@ wl_nthelem(int i, wordlist *wl)
static int
wlcomp(const void *a, const void *b)
{
char **s = (char **) a;
char **t = (char **) b;
const char **s = (const char **) a;
const char **t = (const char **) b;
return (strcmp(*s, *t));
}

Loading…
Cancel
Save