Do not break strict aliasing of status_t structs.

This commit is contained in:
Guus Sliepen 2006-08-08 13:21:08 +00:00
parent 2077451e07
commit eb391c52ee
4 changed files with 28 additions and 22 deletions

View file

@ -251,7 +251,7 @@ static void check_dead_connections(void)
} else {
if(c->status.remove) {
logger(LOG_WARNING, _("Old connection_t for %s (%s) status %04x still lingering, deleting..."),
c->name, c->hostname, *(uint32_t *)&c->status);
c->name, c->hostname, c->status.value);
connection_del(c);
continue;
}