Ensure tinc compiles with gcc -std=c99.

We use a lot of C99 features already, but also some extensions which are not in
the standard.
This commit is contained in:
Guus Sliepen 2009-09-08 21:45:24 +02:00
parent f52ea0a7eb
commit 9b394bc887
5 changed files with 23 additions and 29 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, c->status.value);
c->name, c->hostname, *(uint32_t *)&c->status);
connection_del(c);
continue;
}