Ignore:
Timestamp:
2015-02-20T22:50:54Z (9 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
0b9daac, 3d45471, 7733b8c
Parents:
af359b4
git-author:
Indent <please@…> (19-02-15 05:47:20)
git-committer:
dequis <dx@…> (20-02-15 22:50:54)
Message:

Reindent everything to K&R style with tabs

Used uncrustify, with the configuration file in ./doc/uncrustify.cfg

Commit author set to "Indent <please@…>" so that it's easier to
skip while doing git blame.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/oscar/search.c

    raf359b4 r5ebff60  
    2222        }
    2323
    24         if ((userfunc = aim_callhandler(sess, rx->conn, snac->family, snac->subtype)))
     24        if ((userfunc = aim_callhandler(sess, rx->conn, snac->family, snac->subtype))) {
    2525                ret = userfunc(sess, rx, snac2->data /* address */);
     26        }
    2627
    2728        /* XXX freesnac()? */
    28         if (snac2)
     29        if (snac2) {
    2930                g_free(snac2->data);
     31        }
    3032        g_free(snac2);
    3133
     
    4244        char *searchaddr = NULL;
    4345
    44         if ((snac2 = aim_remsnac(sess, snac->id)))
    45                 searchaddr = (char *)snac2->data;
     46        if ((snac2 = aim_remsnac(sess, snac->id))) {
     47                searchaddr = (char *) snac2->data;
     48        }
    4649
    4750        tlvlist = aim_readtlvchain(bs);
     
    4952
    5053        /* XXX uhm. */
    51         while ((cur = aim_gettlv_str(tlvlist, 0x0001, j+1)) && j < m) {
    52                 buf = g_realloc(buf, (j+1) * (MAXSNLEN+1));
     54        while ((cur = aim_gettlv_str(tlvlist, 0x0001, j + 1)) && j < m) {
     55                buf = g_realloc(buf, (j + 1) * (MAXSNLEN + 1));
    5356
    54                 strncpy(&buf[j * (MAXSNLEN+1)], cur, MAXSNLEN);
     57                strncpy(&buf[j * (MAXSNLEN + 1)], cur, MAXSNLEN);
    5558                g_free(cur);
    5659
    57                 j++; 
     60                j++;
    5861        }
    5962
    6063        aim_freetlvchain(&tlvlist);
    6164
    62         if ((userfunc = aim_callhandler(sess, rx->conn, snac->family, snac->subtype)))
     65        if ((userfunc = aim_callhandler(sess, rx->conn, snac->family, snac->subtype))) {
    6366                ret = userfunc(sess, rx, searchaddr, j, buf);
     67        }
    6468
    6569        /* XXX freesnac()? */
    66         if (snac2)
     70        if (snac2) {
    6771                g_free(snac2->data);
     72        }
    6873        g_free(snac2);
    6974
     
    7681{
    7782
    78         if (snac->subtype == 0x0001)
     83        if (snac->subtype == 0x0001) {
    7984                return error(sess, mod, rx, snac, bs);
    80         else if (snac->subtype == 0x0003)
     85        } else if (snac->subtype == 0x0003) {
    8186                return reply(sess, mod, rx, snac, bs);
     87        }
    8288
    8389        return 0;
Note: See TracChangeset for help on using the changeset viewer.