about summary refs log tree commit diff stats
path: root/contact_list.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-05-13 20:26:35 +0100
committerJames Booth <boothj5@gmail.com>2012-05-13 20:26:35 +0100
commit40117cf370f3a2f5ff957c07940f0476659e8b8d (patch)
treeadced6453b99260c53370eba276e6ce6fdd6147a /contact_list.c
parent1eb0890fedc99f1875655912b2df4dee8a368b0e (diff)
downloadprofani-tty-40117cf370f3a2f5ff957c07940f0476659e8b8d.tar.gz
contact_list_add returns void
Diffstat (limited to 'contact_list.c')
-rw-r--r--contact_list.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/contact_list.c b/contact_list.c
index 1a88b690..1e4fb2d1 100644
--- a/contact_list.c
+++ b/contact_list.c
@@ -84,7 +84,7 @@ int contact_list_remove(const char * const name)
     }
 }
 
-int contact_list_add(const char * const name, const char * const show, 
+void contact_list_add(const char * const name, const char * const show, 
     const char * const status)
 {
 
@@ -93,7 +93,7 @@ int contact_list_add(const char * const name, const char * const show,
         _contact_list = g_slist_append(_contact_list, 
             p_contact_new(name, show, status));
         
-        return 1;
+        return;
     } else {
         GSList *curr = _contact_list;
 
@@ -104,12 +104,12 @@ int contact_list_add(const char * const name, const char * const show,
             if (strcmp(p_contact_name(curr_contact), name) > 0) {
                 _contact_list = g_slist_insert_before(_contact_list,
                     curr, p_contact_new(name, show, status));
-                return 0;
+                return;
             // update
             } else if (strcmp(p_contact_name(curr_contact), name) == 0) {
                 p_contact_free(curr->data);
                 curr->data = p_contact_new(name, show, status);
-                return 0;
+                return;
             }
 
             curr = g_slist_next(curr);
@@ -119,7 +119,7 @@ int contact_list_add(const char * const name, const char * const show,
         _contact_list = g_slist_append(_contact_list, 
             p_contact_new(name, show, status));
         
-        return 1;
+        return;
     }
 }