about summary refs log tree commit diff stats
path: root/src/ui/buffer.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-07-19 17:14:04 +0100
committerJames Booth <boothj5@gmail.com>2014-07-19 17:14:04 +0100
commitb125fa0febed133213c107a291e856deb760b58e (patch)
tree131716f94e0dd23f7fb412e8590060d53277b622 /src/ui/buffer.c
parent191b910d6e9358aca25f5b1b36983f2128743680 (diff)
downloadprofani-tty-b125fa0febed133213c107a291e856deb760b58e.tar.gz
Return address of buffer entry
Diffstat (limited to 'src/ui/buffer.c')
-rw-r--r--src/ui/buffer.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ui/buffer.c b/src/ui/buffer.c
index 903d0662..5ec68bd2 100644
--- a/src/ui/buffer.c
+++ b/src/ui/buffer.c
@@ -69,12 +69,11 @@ buffer_push(ProfBuff buffer, const char show_char, const char * const date_fmt,
     buffer->entries = g_slist_append(buffer->entries, e);
 }
 
-ProfBuffEntry
+ProfBuffEntry*
 buffer_yield_entry(ProfBuff buffer, int entry)
 {
     GSList *node = g_slist_nth(buffer->entries, entry);
-    ProfBuffEntry *buff_entry = node->data;
-    return *buff_entry;
+    return node->data;
 }
 
 static void