mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-21 13:06:22 +00:00
Improve const correctness
Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
This commit is contained in:
@@ -67,8 +67,7 @@ gboolean
|
||||
_pgp_automatic_start(const char* const recipient)
|
||||
{
|
||||
gboolean result = FALSE;
|
||||
char* account_name = session_get_account_name();
|
||||
ProfAccount* account = accounts_get_account(account_name);
|
||||
ProfAccount* account = accounts_get_account(session_get_account_name());
|
||||
|
||||
if (g_list_find_custom(account->pgp_enabled, recipient, (GCompareFunc)g_strcmp0)) {
|
||||
result = TRUE;
|
||||
@@ -82,8 +81,7 @@ gboolean
|
||||
_ox_automatic_start(const char* const recipient)
|
||||
{
|
||||
gboolean result = FALSE;
|
||||
char* account_name = session_get_account_name();
|
||||
ProfAccount* account = accounts_get_account(account_name);
|
||||
ProfAccount* account = accounts_get_account(session_get_account_name());
|
||||
|
||||
if (g_list_find_custom(account->ox_enabled, recipient, (GCompareFunc)g_strcmp0)) {
|
||||
result = TRUE;
|
||||
|
||||
@@ -2885,8 +2885,7 @@ cons_privacy_setting(void)
|
||||
}
|
||||
|
||||
if (connection_get_status() == JABBER_CONNECTED) {
|
||||
char* account_name = session_get_account_name();
|
||||
ProfAccount* account = accounts_get_account(account_name);
|
||||
ProfAccount* account = accounts_get_account(session_get_account_name());
|
||||
|
||||
if (account->client) {
|
||||
cons_show("Client name (/account set <account> clientid) : %s", account->client);
|
||||
|
||||
Reference in New Issue
Block a user