1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-29 19:56:07 -04:00

contact_list_remove returns void

This commit is contained in:
James Booth 2012-05-13 20:39:42 +01:00
parent 40117cf370
commit 9a0b52c22b
2 changed files with 5 additions and 5 deletions

View File

@ -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;
}
}

View File

@ -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);