X-Git-Url: https://git.librecmc.org/?p=oweals%2Ftinc.git;a=blobdiff_plain;f=src%2Fconnection.c;h=430e1c149ec19d9307cb203947dab624177cd095;hp=a2a188a60e327db520bdc6fec141fefca1ff8c97;hb=9b394bc887695da6db74f4b9796b4823e553f8cc;hpb=f52ea0a7eb0383cc2a5f41db1bf24c39424fdb04 diff --git a/src/connection.c b/src/connection.c index a2a188a..430e1c1 100644 --- a/src/connection.c +++ b/src/connection.c @@ -37,7 +37,7 @@ connection_t *broadcast; static int connection_compare(const connection_t *a, const connection_t *b) { - return (void *)a - (void *)b; + return a - b; } void init_connections(void) @@ -144,7 +144,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, c->status.value, + c->name, c->hostname, c->options, c->socket, *(uint32_t *)&c->status, c->outbufsize, c->outbufstart, c->outbuflen); }