From c761d2904822224ec177198af65d546cd845c4b5 Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Thu, 28 Dec 2017 12:34:22 +0100 Subject: [PATCH] Declare client_t::channel as struct channel for better type safety. --- src/client.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/client.h b/src/client.h index e7373bd..f5346bf 100644 --- a/src/client.h +++ b/src/client.h @@ -59,6 +59,8 @@ #define IS_AUTH(_a_) ((_a_)->authenticated) +struct channel; + typedef struct { int tcpfd; SSL_handle_t *ssl; @@ -83,7 +85,7 @@ typedef struct { struct dlist node; struct dlist txMsgQueue; int txQueueCount; - void *channel; /* Ugly... */ + struct channel *channel; char *context; struct dlist chan_node; struct dlist voicetargets; -- 2.30.2