Changeset 7869e48 for libfaim/txqueue.c


Ignore:
Timestamp:
Jan 12, 2013, 1:43:13 PM (11 years ago)
Author:
Jason Gross <jgross@mit.edu>
Children:
e3a0d71, 4485285
Parents:
4626016
git-author:
Jason Gross <jgross@mit.edu> (01/12/13 13:13:18)
git-committer:
Jason Gross <jgross@mit.edu> (01/12/13 13:43:13)
Message:
Remove trailing whitespace

This commit was made with the command sequence

    for i in $(git ls-files | tr '\n' ' ');
    do
      echo $i; sed -i s'/\s\+$//g' "$(readlink -f $i)";
    done
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfaim/txqueue.c

    rcf02dd6 r7869e48  
    5353        memset(fr, 0, sizeof(aim_frame_t));
    5454
    55         fr->conn = conn; 
     55        fr->conn = conn;
    5656
    5757        fr->hdrtype = framing;
     
    6565                fr->hdr.rend.type = chan;
    6666
    67         } else 
     67        } else
    6868                faimdprintf(sess, 0, "tx_new: unknown framing\n");
    6969
     
    133133 * Basically the same as its __queuebased couterpart, however
    134134 * instead of doing a list append, it just calls aim_tx_sendframe()
    135  * right here. 
    136  * 
     135 * right here.
     136 *
    137137 */
    138138static int aim_tx_enqueue__immediate(aim_session_t *sess, aim_frame_t *fr)
     
    159159faim_export int aim_tx_setenqueue(aim_session_t *sess, int what, int (*func)(aim_session_t *, aim_frame_t *))
    160160{
    161        
     161
    162162        if (what == AIM_TX_QUEUED)
    163163                sess->tx_enqueue = &aim_tx_enqueue__queuebased;
    164         else if (what == AIM_TX_IMMEDIATE) 
     164        else if (what == AIM_TX_IMMEDIATE)
    165165                sess->tx_enqueue = &aim_tx_enqueue__immediate;
    166166        else if (what == AIM_TX_USER) {
     
    176176faim_internal int aim_tx_enqueue(aim_session_t *sess, aim_frame_t *fr)
    177177{
    178        
     178
    179179        /*
    180180         * If we want to send a connection thats inprogress, we have to force
     
    182182         * want.
    183183         */
    184         if (fr && fr->conn && 
     184        if (fr && fr->conn &&
    185185                        (fr->conn->status & AIM_CONN_STATUS_INPROGRESS)) {
    186186                return aim_tx_enqueue__queuebased(sess, fr);
     
    190190}
    191191
    192 /* 
     192/*
    193193 *  aim_get_next_txseqnum()
    194194 *
     
    202202{
    203203        flap_seqnum_t ret;
    204        
     204
    205205        ret = ++conn->seqnum;
    206206
     
    238238
    239239        if (count) {
    240                 if ((conn->type == AIM_CONN_TYPE_RENDEZVOUS) && 
     240                if ((conn->type == AIM_CONN_TYPE_RENDEZVOUS) &&
    241241                    (conn->subtype == AIM_CONN_SUBTYPE_OFT_DIRECTIM)) {
    242242                        /* I strongly suspect that this is a horrible thing to do
     
    246246                        while (count - wrote > 1024) {
    247247                                wrote = wrote + aim_send(conn->fd, bs->data + bs->offset + wrote, 1024);
    248                                 if ((userfunc=aim_callhandler(conn->sessv, conn, 
    249                                                                 AIM_CB_FAM_SPECIAL, 
     248                                if ((userfunc=aim_callhandler(conn->sessv, conn,
     249                                                                AIM_CB_FAM_SPECIAL,
    250250                                                                AIM_CB_SPECIAL_IMAGETRANSFER)))
    251                                   userfunc(conn->sessv, NULL, sn, 
     251                                  userfunc(conn->sessv, NULL, sn,
    252252                                           count-wrote>1024 ? ((double)wrote / count) : 1);
    253253                        }
     
    265265                faimdprintf(sess, 2, "\nOutgoing data: (%d bytes)", wrote);
    266266                for (i = 0; i < wrote; i++) {
    267                         if (!(i % 8)) 
     267                        if (!(i % 8))
    268268                                faimdprintf(sess, 2, "\n\t");
    269269                        faimdprintf(sess, 2, "0x%02x ", *(bs->data + bs->offset + i));
     
    304304        if (aim_bstream_send(&obs, fr->conn, obslen) != obslen)
    305305                err = -errno;
    306        
     306
    307307        free(obs_raw); /* XXX aim_bstream_free */
    308308
     
    372372                 */
    373373                if ((cur->conn->lastactivity + cur->conn->forcedlatency) >= time(NULL)) {
    374                         /* 
    375                          * XXX should be a break! we dont want to block the 
     374                        /*
     375                         * XXX should be a break! we dont want to block the
    376376                         * upper layers
    377377                         *
     
    394394/*
    395395 *  aim_tx_purgequeue()
    396  * 
    397  *  This is responsable for removing sent commands from the transmit 
     396 *
     397 *  This is responsable for removing sent commands from the transmit
    398398 *  queue. This is not a required operation, but it of course helps
    399  *  reduce memory footprint at run time! 
     399 *  reduce memory footprint at run time!
    400400 *
    401401 */
Note: See TracChangeset for help on using the changeset viewer.