about summary refs log tree commit diff stats
path: root/src/xmpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/iq.c8
-rw-r--r--src/xmpp/stanza.c4
2 files changed, 6 insertions, 6 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) {
diff --git a/src/xmpp/stanza.c b/src/xmpp/stanza.c
index 7520ff8d..fab6c5e4 100644
--- a/src/xmpp/stanza.c
+++ b/src/xmpp/stanza.c
@@ -2767,7 +2767,7 @@ stanza_create_mam_iq(xmpp_ctx_t* ctx, const char* const jid, const char* const s
     xmpp_stanza_add_child(field_with, value_with);
 
     // field 'start'
-    xmpp_stanza_t* field_start, *value_start, *start_date_text;
+    xmpp_stanza_t *field_start, *value_start, *start_date_text;
     if (startdate) {
         field_start = xmpp_stanza_new(ctx);
         xmpp_stanza_set_name(field_start, STANZA_NAME_FIELD);
@@ -2783,7 +2783,7 @@ stanza_create_mam_iq(xmpp_ctx_t* ctx, const char* const jid, const char* const s
         xmpp_stanza_add_child(field_start, value_start);
     }
 
-    xmpp_stanza_t* field_end, *value_end, *end_date_text;
+    xmpp_stanza_t *field_end, *value_end, *end_date_text;
     if (enddate) {
         field_end = xmpp_stanza_new(ctx);
         xmpp_stanza_set_name(field_end, STANZA_NAME_FIELD);