diff options
author | James Booth <boothj5@gmail.com> | 2014-07-19 17:14:04 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-07-19 17:14:04 +0100 |
commit | b125fa0febed133213c107a291e856deb760b58e (patch) | |
tree | 131716f94e0dd23f7fb412e8590060d53277b622 /src/ui/buffer.c | |
parent | 191b910d6e9358aca25f5b1b36983f2128743680 (diff) | |
download | profani-tty-b125fa0febed133213c107a291e856deb760b58e.tar.gz |
Return address of buffer entry
Diffstat (limited to 'src/ui/buffer.c')
-rw-r--r-- | src/ui/buffer.c | 5 |
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 |