diff options
author | James Booth <boothj5@gmail.com> | 2012-05-13 20:39:42 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2012-05-13 20:39:42 +0100 |
commit | 9a0b52c22b6022719b0d0bc67816721e249bbaa9 (patch) | |
tree | 48b13911501f41a4132bc711aeb921c1d12ea66e /contact_list.c | |
parent | 40117cf370f3a2f5ff957c07940f0476659e8b8d (diff) | |
download | profani-tty-9a0b52c22b6022719b0d0bc67816721e249bbaa9.tar.gz |
contact_list_remove returns void
Diffstat (limited to 'contact_list.c')
-rw-r--r-- | contact_list.c | 8 |
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; } } |