From 9cf78e59d533c7045c2e32e0ce864929b4e15ad7 Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Thu, 27 Jan 2022 15:49:44 +0100 Subject: auto-format Signed-off-by: Steffen Jaeckel --- src/xmpp/avatar.c | 2 +- src/xmpp/connection.c | 2 +- src/xmpp/omemo.c | 2 +- src/xmpp/ox.c | 2 +- src/xmpp/ox.h | 10 +++++----- src/xmpp/stanza.c | 2 +- src/xmpp/xmpp.h | 2 +- 7 files changed, 11 insertions(+), 11 deletions(-) (limited to 'src/xmpp') diff --git a/src/xmpp/avatar.c b/src/xmpp/avatar.c index 89d34fbc..346e85ba 100644 --- a/src/xmpp/avatar.c +++ b/src/xmpp/avatar.c @@ -79,7 +79,7 @@ avatar_pep_subscribe(void) message_pubsub_event_handler_add(STANZA_NS_USER_AVATAR_METADATA, _avatar_metadata_handler, NULL, NULL); message_pubsub_event_handler_add(STANZA_NS_USER_AVATAR_DATA, _avatar_metadata_handler, NULL, NULL); - //caps_add_feature(XMPP_FEATURE_USER_AVATAR_METADATA_NOTIFY); + // caps_add_feature(XMPP_FEATURE_USER_AVATAR_METADATA_NOTIFY); if (looking_for) { g_hash_table_destroy(looking_for); diff --git a/src/xmpp/connection.c b/src/xmpp/connection.c index 516006a9..7d807365 100644 --- a/src/xmpp/connection.c +++ b/src/xmpp/connection.c @@ -1074,7 +1074,7 @@ _random_bytes_close(void) static void _compute_identifier(const char* barejid) { - //in case of reconnect (lost connection) + // in case of reconnect (lost connection) free(prof_identifier); prof_identifier = g_compute_hmac_for_string(G_CHECKSUM_SHA256, diff --git a/src/xmpp/omemo.c b/src/xmpp/omemo.c index 26cd6b37..c4d82e42 100644 --- a/src/xmpp/omemo.c +++ b/src/xmpp/omemo.c @@ -437,7 +437,7 @@ omemo_receive_message(xmpp_stanza_t* const stanza, gboolean* trusted) keys = g_list_append(keys, key); continue; - skip: +skip: free(key); } diff --git a/src/xmpp/ox.c b/src/xmpp/ox.c index b8a0a41e..c4efa5d6 100644 --- a/src/xmpp/ox.c +++ b/src/xmpp/ox.c @@ -222,7 +222,7 @@ ox_request_public_key(const char* const jid, const char* const fingerprint) - + * */ diff --git a/src/xmpp/ox.h b/src/xmpp/ox.h index 143cce95..06acd119 100644 --- a/src/xmpp/ox.h +++ b/src/xmpp/ox.h @@ -2,7 +2,7 @@ * ox.h * vim: expandtab:ts=4:sts=4:sw=4 * - * Copyright (C) 2020 Stefan Kropp + * Copyright (C) 2020 Stefan Kropp * * This file is part of Profanity. * @@ -35,10 +35,10 @@ /*! * \page OX OX Implementation - * + * * \section OX XEP-0373: OpenPGP for XMPP * XEP-0373: OpenPGP for XMPP (OX) is the implementation of OpenPGP for XMPP - * replace the XEP-0027. + * replace the XEP-0027. * * https://xmpp.org/extensions/xep-0373.html */ @@ -48,10 +48,10 @@ * * Reads the public key from the given file. Checks the key-information and * pushes the key on PEP. - * + * * https://xmpp.org/extensions/xep-0373.html#announcing-pubkey * - * \param filename name of the file with the public key + * \param filename name of the file with the public key * \return TRUE: success; FALSE: failed */ diff --git a/src/xmpp/stanza.c b/src/xmpp/stanza.c index d28ed3d2..bfb782da 100644 --- a/src/xmpp/stanza.c +++ b/src/xmpp/stanza.c @@ -2605,7 +2605,7 @@ stanza_create_mam_iq(xmpp_ctx_t* ctx, const char* const jid, const char* const s char* id = connection_create_stanza_id(); xmpp_stanza_t* iq = xmpp_iq_new(ctx, STANZA_TYPE_SET, id); free(id); - //xmpp_stanza_set_to(iq, jid); + // xmpp_stanza_set_to(iq, jid); xmpp_stanza_t* query = xmpp_stanza_new(ctx); xmpp_stanza_set_name(query, STANZA_NAME_QUERY); diff --git a/src/xmpp/xmpp.h b/src/xmpp/xmpp.h index 8a2d2eb2..457d740a 100644 --- a/src/xmpp/xmpp.h +++ b/src/xmpp/xmpp.h @@ -99,7 +99,7 @@ typedef struct bookmark_t char* password; char* name; gboolean autojoin; - int ext_gajim_minimize; //0 - non existent, 1 - true, 2 - false + int ext_gajim_minimize; // 0 - non existent, 1 - true, 2 - false } Bookmark; typedef struct disco_identity_t -- cgit 1.4.1-2-gfad0