From 884d1adb426b51db574c2dace9760dac0bdf41bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Wed, 22 Nov 2017 17:23:42 +0100 Subject: [PATCH] Line formatting. --- src/message.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/message.cpp b/src/message.cpp index cdf79ba..2edf55e 100644 --- a/src/message.cpp +++ b/src/message.cpp @@ -34,13 +34,15 @@ struct NeoComm_message *NeoComm_get_next_message(const char *channel_name) { return NULL; const dht::ImMessage *new_msg = &channels[s_chan_name].msgs.front(); struct NeoComm_message *msg = - static_cast(malloc(sizeof(struct NeoComm_message))); + static_cast( + malloc(sizeof(struct NeoComm_message))); msg->msg = static_cast(malloc(new_msg->msg.size())); strcpy(msg->msg, new_msg->msg.c_str()); msg->sent = new_msg->date; msg->from.nick = NULL; // TODO: Implement this! - msg->from.hash = static_cast(malloc(strlen(new_msg->from.to_c_str()))); + msg->from.hash = static_cast( + malloc(strlen(new_msg->from.to_c_str()))); strcpy(msg->from.hash, new_msg->from.to_c_str()); channels[s_chan_name].msgs.pop();