tStatically init friend head - ratox - FIFO based tox client
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 0c4fe86bba0bbf32112388e62f2856dea218af1a
 (DIR) parent d0f4dccc6ac8b81db75930ccb2a22f556b54fa33
 (HTM) Author: sin <sin@2f30.org>
       Date:   Sat, 13 Sep 2014 15:48:43 +0100
       
       Statically init friend head
       
       Diffstat:
         M ratatox.c                           |       4 +---
       
       1 file changed, 1 insertion(+), 3 deletions(-)
       ---
 (DIR) diff --git a/ratatox.c b/ratatox.c
       t@@ -112,7 +112,7 @@ struct friend {
                TAILQ_ENTRY(friend) entry;
        };
        
       -static TAILQ_HEAD(friendhead, friend) friendhead;
       +static TAILQ_HEAD(friendhead, friend) friendhead = TAILQ_HEAD_INITIALIZER(friendhead);
        
        static Tox *tox;
        static void dataload(void);
       t@@ -455,8 +455,6 @@ friendload(void)
                int n;
                char name[TOX_MAX_NAME_LENGTH + 1];
        
       -        TAILQ_INIT(&friendhead);
       -
                sz = tox_count_friendlist(tox);
                fids = malloc(sz);
                if (!fids) {