ayttm-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ayttm-commits] CVS: ayttm/src util.c,1.52,1.53


From: Andy Maloney <address@hidden>
Subject: [Ayttm-commits] CVS: ayttm/src util.c,1.52,1.53
Date: Sat, 15 Mar 2003 06:28:14 -0500

Update of /cvsroot/ayttm/ayttm/src
In directory subversions:/tmp/cvs-serv16123a/src

Modified Files:
        util.c 
Log Message:
fixed crash when confirming the addition of a new contact [create_contact() 
needed a return value...]
fix a couple of compiler warnings about if... else ambiguity


Index: util.c
===================================================================
RCS file: /cvsroot/ayttm/ayttm/src/util.c,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -r1.52 -r1.53
--- util.c      7 Mar 2003 10:47:57 -0000       1.52
+++ util.c      15 Mar 2003 11:28:04 -0000      1.53
@@ -909,6 +909,7 @@
        for( node = accounts; node; node = node->next ) {
                eb_local_account * ela = node->data;
                if (RUN_SERVICE(ela)->add_group)
+               {
                        if (ela->connected) {
                                eb_debug(DBG_CORE, "adding group %s in %s\n",
                                        name, 
get_service_name(ela->service_id));
@@ -916,6 +917,7 @@
                        } else {
                                group_mgmt_queue_add(ela, NULL, MGMT_GRP_ADD, 
name);
                        }
+               }
        }
        update_contact_list();
        write_contact_list();
@@ -936,6 +938,7 @@
        for( node = accounts; node; node = node->next ) {
                eb_local_account * ela = node->data;
                if (RUN_SERVICE(ela)->rename_group)
+               {
                        if (ela->connected) {
                                eb_debug(DBG_CORE, "renaming group %s to %s in 
%s\n",
                                        oldname, new_name, 
get_service_name(ela->service_id));
@@ -943,6 +946,7 @@
                        } else {
                                group_mgmt_queue_add(ela, oldname, 
MGMT_GRP_REN, new_name);
                        }
+               }
        }
 }
 
@@ -1044,7 +1048,7 @@
        user->group = grp;
 }
 
-static struct contact * create_contact( char * con, int type )
+static struct contact * create_contact( const char * con, int type )
 {
        struct contact * c = calloc(1, sizeof(struct contact));
        if (con != NULL) 
@@ -1052,6 +1056,7 @@
 
        c->default_chatb = c->default_filetransb = type;
 
+       return( c );
 }
 
 struct contact * add_new_contact( char * group, char * con, int type )





reply via email to

[Prev in Thread] Current Thread [Next in Thread]