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:39:42 +0100
committerJames Booth <boothj5@gmail.com>2012-05-13 20:39:42 +0100
commit9a0b52c22b6022719b0d0bc67816721e249bbaa9 (patch)
tree48b13911501f41a4132bc711aeb921c1d12ea66e /contact_list.c
parent40117cf370f3a2f5ff957c07940f0476659e8b8d (diff)
downloadprofani-tty-9a0b52c22b6022719b0d0bc67816721e249bbaa9.tar.gz
contact_list_remove returns void
Diffstat (limited to 'contact_list.c')
-rw-r--r--contact_list.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/contact_list.c b/contact_list.c
index 1e4fb2d1..eae48963 100644
--- a/contact_list.c
+++ b/contact_list.c
@@ -56,7 +56,7 @@ void reset_search_attempts(void)
     }
 }
 
-int contact_list_remove(const char * const name)
+void contact_list_remove(const char * const name)
 {
     // reset last found if it points at the node to be removed
     if (_last_found != NULL)
@@ -64,7 +64,7 @@ int contact_list_remove(const char * const name)
             _last_found = NULL;
     
     if (!_contact_list) {
-        return 0;
+        return;
     } else {
         GSList *curr = _contact_list;
         
@@ -74,13 +74,13 @@ int contact_list_remove(const char * const name)
                 _contact_list = g_slist_remove(_contact_list, contact);
                 p_contact_free(contact);
 
-                return 1;
+                return;
             }
 
             curr = g_slist_next(curr);
         }
 
-        return 0;
+        return;
     }
 }