PATCH: Fix for gcc 4.x
Baishampayan Ghose <[email protected]>
| Newsgroups | gmane.network.instant-messaging.ayttm.user |
|---|---|
| Organization | Free Software Foundation of India |
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
ayttm build failed with gcc 4.0.1 since lvalue cast support [which was
deprecated for a while] was removed from gcc 4.x
I am attaching a trivial patch to fix it.
Regards,
BG
Index: modules/yahoo2/yahoo.c
===================================================================
RCS file: /cvsroot/ayttm/ayttm/modules/yahoo2/yahoo.c,v
retrieving revision 1.93
diff -a -u -r1.93 yahoo.c
- --- modules/yahoo2/yahoo.c 13 Feb 2005 13:39:32 -0000 1.93
+++ modules/yahoo2/yahoo.c 24 Nov 2005 09:48:59 -0000
@@ -274,7 +274,7 @@
#define YAHOO_FONT_SIZE "size=\""
#ifndef FREE
- -#define FREE(x) if(x) { g_free((void *)x); x=NULL; }
+#define FREE(x) if(x) { g_free((void *)x); x=(void *)NULL; }
#endif
typedef struct {
@@ -1236,7 +1236,7 @@
if(!strcmp(handle, who)) {
ycrd->members =
y_list_remove_link(ycrd->members, l);
FREE(handle);
- - FREE((YList *)l);
+ FREE(l);
break;
}
}
- --
Baishampayan Ghose
b.ghose at gmail.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFDhY5kQkk0lIY2G3QRAuBfAJ0cNtbyY3ghWS/4+eMFpUnqvGnAdwCgneJL
tdUfGayR2U44fTOOCdrIEr0=
=r5WV
-----END PGP SIGNATURE-----
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click