X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/e81e4e8d1c49737e12e3ca5dba36fd1453f447bb..7489d3af05a4394e9621e14a196a9f6c4f788a26:/libtests/t-addr.c diff --git a/libtests/t-addr.c b/libtests/t-addr.c index 7710212..6e438fc 100644 --- a/libtests/t-addr.c +++ b/libtests/t-addr.c @@ -1,6 +1,6 @@ /* * This file is part of DisOrder. - * Copyright (C) 2005, 2007, 2008 Richard Kettlewell + * Copyright (C) 2005, 2007-2009 Richard Kettlewell * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -33,6 +33,7 @@ static void test_addr(void) { }; struct sockaddr_in a1 = { + .sin_family = AF_INET, .sin_port = ntohs(25), .sin_addr = { .s_addr = 0} }; @@ -45,6 +46,7 @@ static void test_addr(void) { }; struct sockaddr_in a2 = { + .sin_family = AF_INET, .sin_port = ntohs(119), .sin_addr = { .s_addr = htonl(0x7F000001) } };