about summary refs log tree commit diff stats
path: root/src/xmpp/iq.c
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2022-10-21 16:55:18 +0200
committerMichael Vetter <jubalh@iodoru.org>2022-10-21 16:55:18 +0200
commita04031cec9e20f4a805a174d44bf8b682a69d7a7 (patch)
treef25dacf15eee1179df36598fd7567bcdd5e7febf /src/xmpp/iq.c
parent5ebd7df7e8ae600820358d2edd7196475826fb46 (diff)
downloadprofani-tty-a04031cec9e20f4a805a174d44bf8b682a69d7a7.tar.gz
Apply codigng style on new MAM code
Diffstat (limited to 'src/xmpp/iq.c')
-rw-r--r--src/xmpp/iq.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/xmpp/iq.c b/src/xmpp/iq.c
index 8eff3f5d..4d0ee281 100644
--- a/src/xmpp/iq.c
+++ b/src/xmpp/iq.c
@@ -2707,7 +2707,6 @@ iq_mam_request(ProfChatWin* win, GDateTime* enddate)
         late_delivery_windows = g_slist_append(late_delivery_windows, cur_del_data);
     }
 
-
     _iq_mam_request(win, startdate, enddate);
 
     return;
@@ -2731,13 +2730,13 @@ _mam_rsm_id_handler(xmpp_stanza_t* const stanza, void* const userdata)
 
             buffer_remove_entry(window->layout->buffer, 0);
 
-            char *start_str = NULL;
+            char* start_str = NULL;
             if (data->start_datestr) {
                 start_str = strdup(data->start_datestr);
                 // Convert to iso8601
                 start_str[strlen(start_str) - 3] = '\0';
             }
-            char *end_str = NULL;
+            char* end_str = NULL;
             if (data->end_datestr) {
                 end_str = strdup(data->end_datestr);
                 // Convert to iso8601
@@ -2762,7 +2761,8 @@ _mam_rsm_id_handler(xmpp_stanza_t* const stanza, void* const userdata)
             }
 
             chatwin_db_history(data->win, start_str, end_str, TRUE);
-            if (start_str) free(start_str);
+            if (start_str)
+                free(start_str);
 
             xmpp_stanza_t* set = xmpp_stanza_get_child_by_name_and_ns(fin, STANZA_TYPE_SET, STANZA_NS_RSM);
             if (set) {