Declare client_t::channel as struct channel for better type safety.
authorTilman Sauerbeck <tilman@code-monkey.de>
Thu, 28 Dec 2017 11:34:22 +0000 (12:34 +0100)
committerTilman Sauerbeck <tilman@code-monkey.de>
Thu, 28 Dec 2017 11:34:22 +0000 (12:34 +0100)
src/client.h

index e7373bdfe148a2aca7ca136242c6dcb2ddeb3e50..f5346bf8b68d858d220fcdb2bd539fd7db22327b 100644 (file)
@@ -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;