Inverted function argument (keep_data -> delete_data).

This commit is contained in:
Håvard Pettersson 2014-09-19 18:19:42 +02:00
parent bc85c337a6
commit 0e61f47b66
2 changed files with 3 additions and 3 deletions

View File

@ -352,13 +352,13 @@ tox_weechat_identity_for_buffer(struct t_gui_buffer *buffer)
void
tox_weechat_identity_delete(struct t_tox_weechat_identity *identity,
bool keep_data)
bool delete_data)
{
char *data_path = tox_weechat_identity_data_file_path(identity);
tox_weechat_identity_free(identity);
if (!keep_data)
if (delete_data)
unlink(data_path);
}

View File

@ -78,7 +78,7 @@ tox_weechat_identity_for_buffer(struct t_gui_buffer *buffer);
void
tox_weechat_identity_delete(struct t_tox_weechat_identity *identity,
bool keep_data);
bool delete_data);
void
tox_weechat_identity_free(struct t_tox_weechat_identity *identity);