Changes in / [b8c2ace:5424c76]


Ignore:
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • irc.c

    rb8c2ace r5424c76  
    750750                }
    751751                irc_reply( irc, 376, ":End of MOTD" );
    752                 close( fd );
     752                closesocket( fd );
    753753        }
    754754}
  • protocols/jabber/jabber.c

    rb8c2ace r5424c76  
    413413                if (jd->die)
    414414                        signoff(GJ_GC(gjc));
    415         } else if (len == 0 || (len < 0 && (!sockerr_again() || gjc->ssl))) {
     415        } else if (len < 0 || errno != EAGAIN) {
    416416                STATE_EVT(JCONN_STATE_OFF)
    417417        }
  • protocols/oscar/oscar.c

    rb8c2ace r5424c76  
    608608                return;
    609609        }
    610         /* [WvG] Wheeeee! Who needs error checking anyway? ;-) */
    611610        read(pos->fd, m, 16);
    612611        m[16] = '\0';
  • protocols/oscar/rxqueue.c

    rb8c2ace r5424c76  
    353353                return -1; /* its a aim_conn_close()'d connection */
    354354
    355         /* KIDS, THIS IS WHAT HAPPENS IF YOU USE CODE WRITTEN FOR GUIS IN A DAEMON!
    356            
    357            And wouldn't it make sense to return something that prevents this function
    358            from being called again IMMEDIATELY (and making the program suck up all
    359            CPU time)?...
    360            
    361         if (conn->fd < 3)
     355        if (conn->fd < 3)  /* can happen when people abuse the interface */
    362356                return 0;
    363         */
    364357
    365358        if (conn->status & AIM_CONN_STATUS_INPROGRESS)
  • protocols/yahoo/yahoo.c

    rb8c2ace r5424c76  
    189189{
    190190        struct byahoo_data *yd = (struct byahoo_data *) gc->proto_data;
    191        
     191
    192192        gc->away = NULL;
    193        
    194         if( msg )
     193
     194        if (msg)
    195195        {
    196196                yd->current_status = YAHOO_STATUS_CUSTOM;
    197197                gc->away = "";
    198198        }
    199         if( state )
     199        else if (state)
    200200        {
    201201                gc->away = "";
    202                 if( g_strcasecmp( state, "Available" ) == 0 )
     202                if( g_strcasecmp(state, "Available" ) == 0 )
    203203                {
    204204                        yd->current_status = YAHOO_STATUS_AVAILABLE;
     
    235235                }
    236236        }
    237         else if( gc->is_idle )
     237        else if ( gc->is_idle )
    238238                yd->current_status = YAHOO_STATUS_IDLE;
    239239        else
    240240                yd->current_status = YAHOO_STATUS_AVAILABLE;
    241241       
    242         if( yd->current_status == YAHOO_STATUS_INVISIBLE )
    243                 yahoo_set_away( yd->y2_id, yd->current_status, NULL, gc->away != NULL );
    244         else
    245                 yahoo_set_away( yd->y2_id, yd->current_status, msg, gc->away != NULL );
     242        yahoo_set_away( yd->y2_id, yd->current_status, msg, gc->away != NULL );
    246243}
    247244
Note: See TracChangeset for help on using the changeset viewer.