From 0e61f47b66a82f135b872cce4707cf58b9639b2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Pettersson?= Date: Fri, 19 Sep 2014 18:19:42 +0200 Subject: [PATCH] Inverted function argument (keep_data -> delete_data). --- src/tox-weechat-identities.c | 4 ++-- src/tox-weechat-identities.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tox-weechat-identities.c b/src/tox-weechat-identities.c index 99706b5..d375edb 100644 --- a/src/tox-weechat-identities.c +++ b/src/tox-weechat-identities.c @@ -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); } diff --git a/src/tox-weechat-identities.h b/src/tox-weechat-identities.h index 33a7a1a..3bb10af 100644 --- a/src/tox-weechat-identities.h +++ b/src/tox-weechat-identities.h @@ -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);