Do not break strict aliasing of status_t structs.
[oweals/tinc.git] / src / connection.c
index c1a1b69f1eaf7ed2b5054fe1841cbe3b51ecfe88..c4c9fd4861a530f8b2c3e63a950f0b43ce50cb1a 100644 (file)
@@ -122,7 +122,7 @@ void dump_connections(void)
        for(node = connection_tree->head; node; node = node->next) {
                c = node->data;
                logger(LOG_DEBUG, _(" %s at %s options %lx socket %d status %04x outbuf %d/%d/%d"),
-                          c->name, c->hostname, c->options, c->socket, *(uint32_t *)&c->status,
+                          c->name, c->hostname, c->options, c->socket, c->status.value,
                           c->outbufsize, c->outbufstart, c->outbuflen);
        }