From: <zu...@us...> - 2015-03-16 14:21:01
|
Revision: 5153 http://sourceforge.net/p/fuse-emulator/code/5153 Author: zubzero Date: 2015-03-16 14:20:49 +0000 (Mon, 16 Mar 2015) Log Message: ----------- pzx_read: add missing const qualifiers and remove casts Modified Paths: -------------- trunk/libspectrum/hacking/ChangeLog trunk/libspectrum/pzx_read.c Modified: trunk/libspectrum/hacking/ChangeLog =================================================================== --- trunk/libspectrum/hacking/ChangeLog 2015-03-16 14:12:21 UTC (rev 5152) +++ trunk/libspectrum/hacking/ChangeLog 2015-03-16 14:20:49 UTC (rev 5153) @@ -996,3 +996,4 @@ 20150316 configure.ac: always use -Wwrite-strings when using GCC (Stuart). 20150316 zlib.c,zxs.c: define ZLIB_CONST when including <zlib.h> and remove cast used as workaround for discarding of const (Stuart). +20150316 pzx_read.c: add missing const qualifiers and remove casts (Stuart). Modified: trunk/libspectrum/pzx_read.c =================================================================== --- trunk/libspectrum/pzx_read.c 2015-03-16 14:12:21 UTC (rev 5152) +++ trunk/libspectrum/pzx_read.c 2015-03-16 14:20:49 UTC (rev 5153) @@ -107,8 +107,8 @@ static int info_t_compar(const void *a, const void *b) { - char *key = (char *)a; - struct info_t *test = (struct info_t *)b; + const char *key = a; + const struct info_t *test = b; return strcmp( key, test->id ); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |