aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-08-04 20:30:46 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-08-04 20:30:46 +0100
commitbce20148efd93f3509c1c2e6efdcc273eefb3ee8 (patch)
tree8ef9079c73868cd1086f01900d76e44146e2f850
parent3063f8185b354358362665a90967fa15c5407f2b (diff)
Try another way to silence int-pointer cast warnings in the Yahoo! module.
-Wno-pointer-to-int-cast is not supported by gcc3.
-rw-r--r--protocols/yahoo/Makefile2
-rw-r--r--protocols/yahoo/yahoo.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/protocols/yahoo/Makefile b/protocols/yahoo/Makefile
index e5374538..20ecce71 100644
--- a/protocols/yahoo/Makefile
+++ b/protocols/yahoo/Makefile
@@ -14,7 +14,7 @@ endif
# [SH] Program variables
objects = yahoo.o crypt.o libyahoo2.o yahoo_fn.o yahoo_httplib.o yahoo_util.o
-CFLAGS += -Wall -DSTDC_HEADERS -DHAVE_STRING_H -DHAVE_STRCHR -DHAVE_MEMCPY -DHAVE_GLIB -Wno-pointer-to-int-cast
+CFLAGS += -Wall -DSTDC_HEADERS -DHAVE_STRING_H -DHAVE_STRCHR -DHAVE_MEMCPY -DHAVE_GLIB
LFLAGS += -r
# [SH] Phony targets
diff --git a/protocols/yahoo/yahoo.c b/protocols/yahoo/yahoo.c
index dfd2e70f..e926e60c 100644
--- a/protocols/yahoo/yahoo.c
+++ b/protocols/yahoo/yahoo.c
@@ -707,7 +707,7 @@ void ext_yahoo_error( int id, const char *err, int fatal, int num )
int ext_yahoo_add_handler( int id, void *fd_, yahoo_input_condition cond, void *data )
{
struct byahoo_input_data *inp = g_new0( struct byahoo_input_data, 1 );
- int fd = (int) fd_;
+ int fd = (long) fd_;
if( cond == YAHOO_INPUT_READ )
{
@@ -789,17 +789,17 @@ char *ext_yahoo_get_ip_addr( const char *domain )
int ext_yahoo_write( void *fd, char *buf, int len )
{
- return write( (int) fd, buf, len );
+ return write( (long) fd, buf, len );
}
int ext_yahoo_read( void *fd, char *buf, int len )
{
- return read( (int) fd, buf, len );
+ return read( (long) fd, buf, len );
}
void ext_yahoo_close( void *fd )
{
- close( (int) fd );
+ close( (long) fd );
}
void ext_yahoo_got_buddy_change_group( int id, const char *me, const char *who,