X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Flibsystemd-network%2Ftest-dhcp-option.c;h=46c8c2706148dd7357ee6418b797443a6e9b13b2;hb=8d7f2c6a47db4bdb753b9d523d3bcb1105827991;hp=63cdc7aa06c776c6878c54640e7ab15aa737e75a;hpb=6f42877282a7237f3aa840403047b7cc18d7faa6;p=elogind.git diff --git a/src/libsystemd-network/test-dhcp-option.c b/src/libsystemd-network/test-dhcp-option.c index 63cdc7aa0..46c8c2706 100644 --- a/src/libsystemd-network/test-dhcp-option.c +++ b/src/libsystemd-network/test-dhcp-option.c @@ -92,7 +92,7 @@ static void test_message_init(void) message = malloc0(len); assert_se(dhcp_message_init(message, BOOTREQUEST, 0x12345678, - DHCP_DISCOVER, optlen, &optoffset) >= 0); + DHCP_DISCOVER, ARPHRD_ETHER, optlen, &optoffset) >= 0); assert_se(message->xid == htobe32(0x12345678)); assert_se(message->op == BOOTREQUEST); @@ -344,7 +344,7 @@ static void test_option_set(void) for (i = 0; i < 9; i++) { if (verbose) - printf("%2d: 0x%02x(0x%02x) (options)\n", i, result->options[i], + printf("%2u: 0x%02x(0x%02x) (options)\n", i, result->options[i], options[i]); assert_se(result->options[i] == options[i]); } @@ -363,7 +363,7 @@ static void test_option_set(void) for (i = 0; i < pos - 8; i++) { if (verbose) - printf("%2d: 0x%02x(0x%02x) (sname)\n", i, result->sname[i], + printf("%2u: 0x%02x(0x%02x) (sname)\n", i, result->sname[i], options[i + 9]); assert_se(result->sname[i] == options[i + 9]); }