parser: fix GCC 6 warnings
authorFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 23 Feb 2016 18:25:31 +0000 (19:25 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 25 Feb 2016 12:39:33 +0000 (13:39 +0100)
commit5aa4442c02e0886097de132ebaa5778851111053
tree514b5aefd91b4a6aad63460ae0ab7d9ab381fbde
parent0811e31260ba065750150205a22c545a10f80f19
parser: fix GCC 6 warnings

src/parser.c:450:30: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
       void * src = &((struct sockaddr_in *)(void *)&from)->sin_addr;
                              ^~~~~~~~~~~
src/parser.c:454:30: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
       void * src = &((struct sockaddr_in6 *)(void *)&from)->sin6_addr;
                              ^~~~~~~~~~~~

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
src/parser.c