Changeset 25c4c78 for protocols


Ignore:
Timestamp:
2015-01-16T19:50:24Z (5 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
a6cd799
Parents:
7549d00
git-author:
Jason Copenhaver <jcopenha@…> (16-01-15 19:50:24)
git-committer:
dequis <dx@…> (16-01-15 19:50:24)
Message:

Fix compiler warnings on Cygwin and Mac OS X.

  • Don't use PIE/PIC on Cygwin/Darwin unless specified as these platforms don't support it.
  • Cleanup warnings for 'make check' build.
  • Fix the type issue for getsockopt calls.
  • Fix enum warnings in Yahoo libs on Mac OS X.
Location:
protocols
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • protocols/oscar/conn.c

    r7549d00 r25c4c78  
    571571
    572572        if (FD_ISSET(conn->fd, &fds) || FD_ISSET(conn->fd, &wfds)) {
    573                 unsigned int len = sizeof(error);
     573                socklen_t len = sizeof(error);
    574574
    575575                if (getsockopt(conn->fd, SOL_SOCKET, SO_ERROR, &error, &len) < 0)
  • protocols/yahoo/libyahoo2.c

    r7549d00 r25c4c78  
    974974                        msg = pair->value;
    975975
    976                 if (pair->key == 13) ;
     976                if (pair->key == 13)
     977                        ;
    977978                if (pair->key == 16)    /* error */
    978979                        msg = pair->value;
     
    17951796        switch (code)
    17961797        {
    1797                 case 1212: return YAHOO_LOGIN_PASSWD;
    1798                 case 1213: return YAHOO_LOGIN_LOCK;
    1799                 case 1235: return YAHOO_LOGIN_UNAME;
     1798                case 1212: return (enum yahoo_status) YAHOO_LOGIN_PASSWD;
     1799                case 1213: return (enum yahoo_status) YAHOO_LOGIN_LOCK;
     1800                case 1235: return (enum yahoo_status) YAHOO_LOGIN_UNAME;
    18001801                default: return (enum yahoo_status) code;
    18011802        }
     
    36103611        yd = yid->yd;
    36113612
    3612         pkt = yahoo_packet_new(YAHOO_SERVICE_MESSAGE, YAHOO_STATUS_OFFLINE,
     3613        pkt = yahoo_packet_new(YAHOO_SERVICE_MESSAGE, (enum ypacket_status) YAHOO_STATUS_OFFLINE,
    36133614                yd->session_id);
    36143615
     
    36773678        if (yd->current_status == YAHOO_STATUS_INVISIBLE) {
    36783679                pkt = yahoo_packet_new(YAHOO_SERVICE_Y6_VISIBLE_TOGGLE,
    3679                         YAHOO_STATUS_AVAILABLE, 0);
     3680                        (enum ypacket_status) YAHOO_STATUS_AVAILABLE, 0);
    36803681                yahoo_packet_hash(pkt, 13, "2");
    36813682                yahoo_send_packet(yid, pkt, 0);
     
    36963697        if (old_status == YAHOO_STATUS_INVISIBLE) {
    36973698                pkt = yahoo_packet_new(YAHOO_SERVICE_Y6_VISIBLE_TOGGLE,
    3698                         YAHOO_STATUS_AVAILABLE, 0);
     3699                        (enum ypacket_status) YAHOO_STATUS_AVAILABLE, 0);
    36993700                yahoo_packet_hash(pkt, 13, "1");
    37003701                yahoo_send_packet(yid, pkt, 0);
  • protocols/yahoo/yahoo_util.h

    r7549d00 r25c4c78  
    4848
    4949# define snprintf       g_snprintf
     50#ifdef vsnprintf
     51#undef vsnprintf
     52#endif
    5053# define vsnprintf      g_vsnprintf
    5154
Note: See TracChangeset for help on using the changeset viewer.