Changeset fbb15f2 for skype


Ignore:
Timestamp:
2011-01-02T02:41:04Z (14 years ago)
Author:
Miklos Vajna <vmiklos@…>
Branches:
master
Children:
cb6d3c9
Parents:
54ca269
Message:

checkpatch fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skype/skype.c

    r54ca269 rfbb15f2  
    762762}
    763763
    764 static struct skype_group *skype_group_by_id(struct im_connection *ic, int id) {
     764static struct skype_group *skype_group_by_id(struct im_connection *ic, int id)
     765{
    765766        struct skype_data *sd = ic->proto_data;
    766767        int i;
     
    775776}
    776777
    777 static void skype_group_free(struct skype_group* sg, gboolean usersonly) {
     778static void skype_group_free(struct skype_group *sg, gboolean usersonly)
     779{
    778780        int i;
    779        
     781
    780782        for (i = 0; i < g_list_length(sg->users); i++) {
    781783                char *user = g_list_nth_data(sg->users, i);
     
    790792
    791793/* Update the group of each user in this group */
    792 static void skype_group_users(struct im_connection *ic, struct skype_group *sg) {
     794static void skype_group_users(struct im_connection *ic, struct skype_group *sg)
     795{
    793796        int i;
    794797
     
    847850                        skype_group_users(ic, sg);
    848851                } else
    849                         log_message(LOGLVL_ERROR, "No skype group with id %s. That's probably a bug.", id);
     852                        log_message(LOGLVL_ERROR,
     853                                "No skype group with id %s. That's probably a bug.", id);
    850854        }
    851855}
     
    12201224}
    12211225
    1222 static void skype_call(struct im_connection *ic, char *value) {
     1226static void skype_call(struct im_connection *ic, char *value)
     1227{
    12231228        char *nick = g_strdup(value);
    12241229        char *ptr = strchr(nick, '@');
     
    12481253        struct im_connection *ic = acc->ic;
    12491254
    1250         if (value) {
     1255        if (value)
    12511256                skype_call(ic, value);
    1252         } else
     1257        else
    12531258                skype_hangup(ic);
    12541259        return value;
     
    14161421
    14171422#if BITLBEE_VERSION_CODE >= BITLBEE_VER(3, 0, 1)
    1418 GList *skype_buddy_action_list( bee_user_t *bu )
    1419 {
    1420         static GList *ret = NULL;
    1421 
    1422         if (ret == NULL)
    1423         {
     1423GList *skype_buddy_action_list(bee_user_t *bu)
     1424{
     1425        static GList *ret;
     1426
     1427        if (ret == NULL) {
    14241428                static const struct buddy_action ba[3] = {
    14251429                        {"CALL", "Initiate a call" },
     
    14271431                };
    14281432
    1429                 ret = g_list_prepend(ret, (void*) ba + 0);
     1433                ret = g_list_prepend(ret, (void *) ba + 0);
    14301434        }
    14311435
     
    14331437}
    14341438
    1435 void *skype_buddy_action( struct bee_user *bu, const char *action, char * const args[], void *data )
    1436 {
    1437         if (!g_strcasecmp(action, "CALL")) {
     1439void *skype_buddy_action(struct bee_user *bu, const char *action, char * const args[], void *data)
     1440{
     1441        if (!g_strcasecmp(action, "CALL"))
    14381442                skype_call(bu->ic, bu->handle);
    1439         } else if (!g_strcasecmp(action, "HANGUP")) {
     1443        else if (!g_strcasecmp(action, "HANGUP"))
    14401444                skype_hangup(bu->ic);
    1441         }
    14421445
    14431446        return NULL;
Note: See TracChangeset for help on using the changeset viewer.