X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/812b526d127c6657e571db8b33a58137af6709cd..851bbc586215d48acb7575e784d09d0e0ce559df:/libtests/t-addr.c?ds=inline diff --git a/libtests/t-addr.c b/libtests/t-addr.c index 7710212..e33a1d6 100644 --- a/libtests/t-addr.c +++ b/libtests/t-addr.c @@ -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) } };