Skip to content

Commit ea6bc3c

Browse files
committed
Minor fixes of accounts.
Signed-off-by: Steffen Jaeckel <[email protected]>
1 parent e02e8c3 commit ea6bc3c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/config/accounts.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,10 @@ accounts_add(const char* account_name, const char* altdomain, const int port, co
217217
autocomplete_add(enabled_ac, account_name);
218218
}
219219

220-
int
220+
gboolean
221221
accounts_remove(const char* account_name)
222222
{
223-
int r = g_key_file_remove_group(accounts, account_name, NULL);
223+
gboolean r = g_key_file_remove_group(accounts, account_name, NULL);
224224
_accounts_save(account_name);
225225
autocomplete_remove(all_ac, account_name);
226226
autocomplete_remove(enabled_ac, account_name);
@@ -294,7 +294,7 @@ accounts_get_account(const char* const account_name)
294294
if (conn_status == JABBER_CONNECTED) {
295295
const char* conf_jid = connection_jid_for_feature(XMPP_FEATURE_MUC);
296296
if (conf_jid) {
297-
muc_service = strdup(conf_jid);
297+
muc_service = g_strdup(conf_jid);
298298
}
299299
}
300300
}

src/config/accounts.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ char* accounts_find_enabled(const char* const prefix, gboolean previous, void* c
4848
void accounts_reset_all_search(void);
4949
void accounts_reset_enabled_search(void);
5050
void accounts_add(const char* jid, const char* altdomain, const int port, const char* const tls_policy, const char* const auth_policy);
51-
int accounts_remove(const char* jid);
51+
gboolean accounts_remove(const char* jid);
5252
gchar** accounts_get_list(void);
5353
ProfAccount* accounts_get_account(const char* const name);
5454
gboolean accounts_enable(const char* const name);

0 commit comments

Comments
 (0)