about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--contact_list.c8
-rw-r--r--contact_list.h2
2 files changed, 5 insertions, 5 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;
     }
 }
 
diff --git a/contact_list.h b/contact_list.h
index 1e2faea2..569af8cd 100644
--- a/contact_list.h
+++ b/contact_list.h
@@ -31,7 +31,7 @@ void contact_list_clear(void);
 void reset_search_attempts(void);
 void contact_list_add(const char * const name, const char * const show,
     const char * const status);
-int contact_list_remove(const char * const name);
+void contact_list_remove(const char * const name);
 GSList * get_contact_list(void);
 char * find_contact(char *search_str);