Mercurial > noffle
changeset 62:53cfa011a08c noffle
[svn] Avoid compiler warning because of cast from const to non-const.
author | enz |
---|---|
date | Fri, 12 May 2000 18:28:07 +0100 |
parents | adf0af5152f7 |
children | b455e14ebc5d |
files | src/fetchlist.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/fetchlist.c Fri May 12 18:19:38 2000 +0100 +++ b/src/fetchlist.c Fri May 12 18:28:07 2000 +0100 @@ -1,7 +1,7 @@ /* fetchlist.c - $Id: fetchlist.c 67 2000-05-12 17:19:38Z enz $ + $Id: fetchlist.c 68 2000-05-12 17:28:07Z enz $ */ #if HAVE_CONFIG_H @@ -45,8 +45,8 @@ static int compareElem( const void *elem1, const void *elem2 ) { - struct Elem* e1 = (struct Elem*)elem1; - struct Elem* e2 = (struct Elem*)elem2; + const struct Elem* e1 = (const struct Elem*)elem1; + const struct Elem* e2 = (const struct Elem*)elem2; return strcmp( e1->name, e2->name ); }