mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
contact_list_remove returns void
This commit is contained in:
parent
40117cf370
commit
9a0b52c22b
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user