Ignore:
Timestamp:
Jan 12, 2013, 1:43:13 PM (12 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/msgcookie.c

    re374dee r7869e48  
    22 * Cookie Caching stuff. Adam wrote this, apparently just some
    33 * derivatives of n's SNAC work. I cleaned it up, added comments.
    4  * 
     4 *
    55 */
    66
     
    2626 * returns -1 on error, 0 on append, 1 on update.  the cookie you pass
    2727 * in may be free'd, so don't count on its value after calling this!
    28  * 
     28 *
    2929 */
    3030faim_internal int aim_cachecookie(aim_session_t *sess, aim_msgcookie_t *cookie)
     
    3636
    3737        newcook = aim_checkcookie(sess, cookie->cookie, cookie->type);
    38        
     38
    3939        if (newcook == cookie) {
    4040                newcook->addtime = time(NULL);
     
    4343                aim_cookie_free(sess, newcook);
    4444
    45         cookie->addtime = time(NULL); 
     45        cookie->addtime = time(NULL);
    4646
    4747        cookie->next = sess->msgcookies;
     
    6969
    7070        for (prev = &sess->msgcookies; (cur = *prev); ) {
    71                 if ((cur->type == type) && 
     71                if ((cur->type == type) &&
    7272                                (memcmp(cur->cookie, cookie, 8) == 0)) {
    7373                        *prev = cur->next;
     
    9090 *
    9191 */
    92 faim_internal aim_msgcookie_t *aim_mkcookie(fu8_t *c, int type, void *data) 
     92faim_internal aim_msgcookie_t *aim_mkcookie(fu8_t *c, int type, void *data)
    9393{
    9494        aim_msgcookie_t *cookie;
     
    123123
    124124        for (cur = sess->msgcookies; cur; cur = cur->next) {
    125                 if ((cur->type == type) && 
     125                if ((cur->type == type) &&
    126126                                (memcmp(cur->cookie, cookie, 8) == 0))
    127                         return cur;   
     127                        return cur;
    128128        }
    129129
     
    132132
    133133#if 0 /* debugging feature */
    134 faim_internal int aim_dumpcookie(aim_session_t *sess, aim_msgcookie_t *cookie) 
     134faim_internal int aim_dumpcookie(aim_session_t *sess, aim_msgcookie_t *cookie)
    135135{
    136136
     
    138138                return -EINVAL;
    139139
    140         faimdprintf(sess, 0, "\tCookie at %p: %d/%s with %p, next %p\n", cookie, 
     140        faimdprintf(sess, 0, "\tCookie at %p: %d/%s with %p, next %p\n", cookie,
    141141                        cookie->type, cookie->cookie, cookie->data, cookie->next);
    142142
     
    158158 *
    159159 */
    160 faim_internal int aim_cookie_free(aim_session_t *sess, aim_msgcookie_t *cookie) 
     160faim_internal int aim_cookie_free(aim_session_t *sess, aim_msgcookie_t *cookie)
    161161{
    162162        aim_msgcookie_t *cur, **prev;
     
    176176
    177177        return 0;
    178 } 
     178}
    179179
    180180/* XXX I hate switch */
    181 faim_internal int aim_msgcookie_gettype(int reqclass) 
     181faim_internal int aim_msgcookie_gettype(int reqclass)
    182182{
    183183        /* XXX: hokey-assed. needs fixed. */
     
    190190        case AIM_CAPS_SENDFILE: return AIM_COOKIETYPE_OFTSEND;
    191191        default: return AIM_COOKIETYPE_UNKNOWN;
    192         }           
     192        }
    193193}
Note: See TracChangeset for help on using the changeset viewer.