diff --git a/src/core/context.c b/src/core/context.c index edcb418..4301a2c 100644 --- a/src/core/context.c +++ b/src/core/context.c @@ -43,7 +43,7 @@ /* Implement https://xmpp.org/extensions/xep-0084.html * - base64 encoded data is sent in the node * - SHA1 hash is computed from the original PNG file (not the base64 encoded) -*/ + */ char * bot_xmpp_set_avatar_pubsub(struct BotXmppCtx * const bctx, bool setData, char * hexHash) { gchar *avatar; diff --git a/src/core/handlers.c b/src/core/handlers.c index 5c7d7c6..96ff0be 100644 --- a/src/core/handlers.c +++ b/src/core/handlers.c @@ -52,22 +52,22 @@ GString* bot_exec_report(gchar * const reportScript, gchar * const csvfile) { - FILE *fp; - size_t cap; - char *buf = NULL; - GString *command = g_string_new(""); - GString *output = g_string_new(""); + FILE *fp; + size_t cap; + char *buf = NULL; + GString *command = g_string_new(""); + GString *output = g_string_new(""); - g_string_printf(command, "%s %s 10 it", reportScript, csvfile); // TODO variable number of expenses, daily ecc + g_string_printf(command, "%s %s 10 it", reportScript, csvfile); // TODO variable number of expenses, daily ecc - fp = popen(command->str,"r"); - while( getline(&buf, &cap, fp) != -1 ){ - g_string_append(output, buf); - } + fp = popen(command->str,"r"); + while( getline(&buf, &cap, fp) != -1 ){ + g_string_append(output, buf); + } - pclose(fp); + pclose(fp); - return output; + return output; }