preserve const'ness of some casts
This commit is contained in:
parent
c54d3a617e
commit
d04f0948d6
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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++;
|
||||
|
|
|
|||
|
|
@ -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…
Reference in New Issue