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/rxhandlers.c

    r54666e0 r7869e48  
    112112        if (snac.flags & 0x0001) {
    113113                /*
    114                  * This means the SNAC will be followed by another SNAC with 
    115                  * related information.  We don't need to do anything about 
     114                 * This means the SNAC will be followed by another SNAC with
     115                 * related information.  We don't need to do anything about
    116116                 * this here.
    117117                 */
     
    119119        if (snac.flags & 0x8000) {
    120120                /*
    121                  * This packet contains the version of the family that this SNAC is 
    122                  * in.  You get this when your SSI module is version 2 or higher. 
    123                  * For now we have no need for this, but you could always save 
     121                 * This packet contains the version of the family that this SNAC is
     122                 * in.  You get this when your SSI module is version 2 or higher.
     123                 * For now we have no need for this, but you could always save
    124124                 * it as a part of aim_modnsac_t, or something.  The format is...
    125                  * 2 byte length of total mini-header (which is 6 bytes), then TLV 
    126                  * of  type 0x0001, length 0x0002, value is the 2 byte version 
     125                 * 2 byte length of total mini-header (which is 6 bytes), then TLV
     126                 * of  type 0x0001, length 0x0002, value is the 2 byte version
    127127                 * number
    128128                 */
     
    132132        for (cur = (aim_module_t *)sess->modlistv; cur; cur = cur->next) {
    133133
    134                 if (!(cur->flags & AIM_MODFLAG_MULTIFAMILY) && 
     134                if (!(cur->flags & AIM_MODFLAG_MULTIFAMILY) &&
    135135                                (cur->family != snac.family))
    136136                        continue;
     
    155155        for (cur = (aim_module_t *)sess->modlistv; cur; cur = cur->next) {
    156156
    157                 if (!(cur->flags & AIM_MODFLAG_MULTIFAMILY) && 
     157                if (!(cur->flags & AIM_MODFLAG_MULTIFAMILY) &&
    158158                                (cur->family != snac.family))
    159159                        continue;
     
    193193                msg = aim_tlv_getstr(tlvlist, 0x000b, 1);
    194194
    195         if ((userfunc = aim_callhandler(sess, fr->conn, AIM_CB_FAM_SPECIAL, AIM_CB_SPECIAL_CONNERR))) 
     195        if ((userfunc = aim_callhandler(sess, fr->conn, AIM_CB_FAM_SPECIAL, AIM_CB_SPECIAL_CONNERR)))
    196196                ret = userfunc(sess, fr, code, msg);
    197197
     
    221221        };
    222222        static const int maxchannels = 5;
    223        
     223
    224224        /* XXX: this is ugly. and big just for debugging. */
    225225        static const char *literals[14][25] = {
    226                 {"Invalid", 
     226                {"Invalid",
    227227                 NULL
    228228                },
    229                 {"General", 
     229                {"General",
    230230                 "Invalid",
    231231                 "Error",
     
    252252                 "NOP"
    253253                },
    254                 {"Location", 
     254                {"Location",
    255255                 "Invalid",
    256256                 "Error",
    257257                 "Request Rights",
    258                  "Rights Information", 
    259                  "Set user information", 
    260                  "Request User Information", 
    261                  "User Information", 
     258                 "Rights Information",
     259                 "Set user information",
     260                 "Request User Information",
     261                 "User Information",
    262262                 "Watcher Sub Request",
    263263                 "Watcher Notification"
    264264                },
    265                 {"Buddy List Management", 
    266                  "Invalid", 
    267                  "Error", 
     265                {"Buddy List Management",
     266                 "Invalid",
     267                 "Error",
    268268                 "Request Rights",
    269269                 "Rights Information",
    270                  "Add Buddy", 
    271                  "Remove Buddy", 
    272                  "Watcher List Query", 
    273                  "Watcher List Response", 
    274                  "Watcher SubRequest", 
    275                  "Watcher Notification", 
    276                  "Reject Notification", 
    277                  "Oncoming Buddy", 
     270                 "Add Buddy",
     271                 "Remove Buddy",
     272                 "Watcher List Query",
     273                 "Watcher List Response",
     274                 "Watcher SubRequest",
     275                 "Watcher Notification",
     276                 "Reject Notification",
     277                 "Oncoming Buddy",
    278278                 "Offgoing Buddy"
    279279                },
    280                 {"Messeging", 
    281                  "Invalid",
    282                  "Error", 
     280                {"Messeging",
     281                 "Invalid",
     282                 "Error",
    283283                 "Add ICBM Parameter",
    284                  "Remove ICBM Parameter", 
     284                 "Remove ICBM Parameter",
    285285                 "Request Parameter Information",
    286286                 "Parameter Information",
    287                  "Outgoing Message", 
     287                 "Outgoing Message",
    288288                 "Incoming Message",
    289289                 "Evil Request",
    290                  "Evil Reply", 
     290                 "Evil Reply",
    291291                 "Missed Calls",
    292                  "Message Error", 
     292                 "Message Error",
    293293                 "Host Ack"
    294294                },
    295                 {"Advertisements", 
    296                  "Invalid", 
    297                  "Error", 
     295                {"Advertisements",
     296                 "Invalid",
     297                 "Error",
    298298                 "Request Ad",
    299299                 "Ad Data (GIFs)"
    300300                },
    301                 {"Invitation / Client-to-Client", 
     301                {"Invitation / Client-to-Client",
    302302                 "Invalid",
    303303                 "Error",
     
    305305                 "Invitation Ack"
    306306                },
    307                 {"Administrative", 
     307                {"Administrative",
    308308                 "Invalid",
    309309                 "Error",
     
    317317                 "Account Delete Reply"
    318318                },
    319                 {"Popups", 
     319                {"Popups",
    320320                 "Invalid",
    321321                 "Error",
    322322                 "Display Popup"
    323323                },
    324                 {"BOS", 
     324                {"BOS",
    325325                 "Invalid",
    326326                 "Error",
     
    334334                 "Server Error"
    335335                },
    336                 {"User Lookup", 
     336                {"User Lookup",
    337337                 "Invalid",
    338338                 "Error",
     
    340340                 "Search Response"
    341341                },
    342                 {"Stats", 
     342                {"Stats",
    343343                 "Invalid",
    344344                 "Error",
     
    346346                 "Report Events"
    347347                },
    348                 {"Translate", 
     348                {"Translate",
    349349                 "Invalid",
    350350                 "Error",
     
    352352                 "Translate Reply",
    353353                },
    354                 {"Chat Navigation", 
     354                {"Chat Navigation",
    355355                 "Invalid",
    356356                 "Error",
     
    360360                 "Request Occupant List",
    361361                 "Search for Room",
    362                  "Outgoing Message", 
     362                 "Outgoing Message",
    363363                 "Incoming Message",
    364                  "Evil Request", 
    365                  "Evil Reply", 
     364                 "Evil Request",
     365                 "Evil Reply",
    366366                 "Chat Error",
    367367                }
     
    375375                family = aimbs_get16(&frame->data);
    376376                subtype = aimbs_get16(&frame->data);
    377                
     377
    378378                if ((family < maxf) && (subtype+1 < maxs) && (literals[family][subtype] != NULL))
    379379                        faimdprintf(sess, 0, "bleck: channel %s: null handler for %04x/%04x (%s)\n", channels[frame->hdr.flap.type], family, subtype, literals[family][subtype+1]);
     
    388388
    389389        }
    390                
     390
    391391        return 1;
    392392}
     
    471471
    472472        for (cur = (struct aim_rxcblist_s *)src->handlerlist; cur; cur = cur->next) {
    473                 aim_conn_addhandler(sess, dest, cur->family, cur->type, 
     473                aim_conn_addhandler(sess, dest, cur->family, cur->type,
    474474                                                cur->handler, cur->flags);
    475475        }
     
    554554        }
    555555
    556         /* 
     556        /*
    557557         * This doesn't have to be called here.  It could easily be done
    558558         * by a seperate thread or something. It's an administrative operation,
Note: See TracChangeset for help on using the changeset viewer.