about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-10-25 22:50:10 +0000
committerJames Booth <boothj5@gmail.com>2015-10-25 22:50:10 +0000
commit559ff72cf56bb577d61c76b110ed310e2ff7cddb (patch)
tree80b04fb09255298bcfddd20a1eab25de27ad34cf
parent00170984001803cd1306ed000fcbbb0a4297f2be (diff)
downloadprofani-tty-559ff72cf56bb577d61c76b110ed310e2ff7cddb.tar.gz
Applied coding style to src/ui/buffer.h src/ui/buffer.c
-rw-r--r--src/ui/buffer.c6
-rw-r--r--src/ui/buffer.h5
2 files changed, 5 insertions, 6 deletions
diff --git a/src/ui/buffer.c b/src/ui/buffer.c
index a464de4e..20528de4 100644
--- a/src/ui/buffer.c
+++ b/src/ui/buffer.c
@@ -58,7 +58,7 @@ struct prof_buff_t {
 static void _free_entry(ProfBuffEntry *entry);
 
 ProfBuff
-buffer_create()
+buffer_create(void)
 {
     ProfBuff new_buff = malloc(sizeof(struct prof_buff_t));
     new_buff->entries = NULL;
@@ -81,7 +81,7 @@ buffer_free(ProfBuff buffer)
 
 void
 buffer_push(ProfBuff buffer, const char show_char, int pad_indent, GDateTime *time,
-    int flags, theme_item_t theme_item, const char * const from, const char * const message, DeliveryReceipt *receipt)
+    int flags, theme_item_t theme_item, const char *const from, const char *const message, DeliveryReceipt *receipt)
 {
     ProfBuffEntry *e = malloc(sizeof(struct prof_buff_entry_t));
     e->show_char = show_char;
@@ -102,7 +102,7 @@ buffer_push(ProfBuff buffer, const char show_char, int pad_indent, GDateTime *ti
 }
 
 gboolean
-buffer_mark_received(ProfBuff buffer, const char * const id)
+buffer_mark_received(ProfBuff buffer, const char *const id)
 {
     GSList *entries = buffer->entries;
     while (entries) {
diff --git a/src/ui/buffer.h b/src/ui/buffer.h
index dcee0aff..0693d1ba 100644
--- a/src/ui/buffer.h
+++ b/src/ui/buffer.h
@@ -61,10 +61,9 @@ typedef struct prof_buff_t *ProfBuff;
 ProfBuff buffer_create();
 void buffer_free(ProfBuff buffer);
 void buffer_push(ProfBuff buffer, const char show_char, int pad_indent, GDateTime *time, int flags, theme_item_t theme_item,
-    const char * const from, const char * const message, DeliveryReceipt *receipt);
+    const char *const from, const char *const message, DeliveryReceipt *receipt);
 int buffer_size(ProfBuff buffer);
 ProfBuffEntry* buffer_yield_entry(ProfBuff buffer, int entry);
-gboolean buffer_mark_received(ProfBuff buffer, const char * const id);
-
+gboolean buffer_mark_received(ProfBuff buffer, const char *const id);
 
 #endif