Changeset bce2014


Ignore:
Timestamp:
2010-08-04T19:30:46Z (9 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
65016a6
Parents:
3063f81
Message:

Try another way to silence int-pointer cast warnings in the Yahoo! module.
-Wno-pointer-to-int-cast is not supported by gcc3.

Location:
protocols/yahoo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • protocols/yahoo/Makefile

    r3063f81 rbce2014  
    1515objects = yahoo.o crypt.o libyahoo2.o yahoo_fn.o yahoo_httplib.o yahoo_util.o
    1616
    17 CFLAGS += -Wall -DSTDC_HEADERS -DHAVE_STRING_H -DHAVE_STRCHR -DHAVE_MEMCPY -DHAVE_GLIB -Wno-pointer-to-int-cast
     17CFLAGS += -Wall -DSTDC_HEADERS -DHAVE_STRING_H -DHAVE_STRCHR -DHAVE_MEMCPY -DHAVE_GLIB
    1818LFLAGS += -r
    1919
  • protocols/yahoo/yahoo.c

    r3063f81 rbce2014  
    708708{
    709709        struct byahoo_input_data *inp = g_new0( struct byahoo_input_data, 1 );
    710         int fd = (int) fd_;
     710        int fd = (long) fd_;
    711711       
    712712        if( cond == YAHOO_INPUT_READ )
     
    790790int ext_yahoo_write( void *fd, char *buf, int len )
    791791{
    792         return write( (int) fd, buf, len );
     792        return write( (long) fd, buf, len );
    793793}
    794794
    795795int ext_yahoo_read( void *fd, char *buf, int len )
    796796{
    797         return read( (int) fd, buf, len );
     797        return read( (long) fd, buf, len );
    798798}
    799799
    800800void ext_yahoo_close( void *fd )
    801801{
    802         close( (int) fd );
     802        close( (long) fd );
    803803}
    804804
Note: See TracChangeset for help on using the changeset viewer.