mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-19 15:33:56 +00:00
- Remove a bogus test: setsockopt() doesn't return a length, getsockopt()
does. - Use %z to printf a size_t to fix compile on 64-bit platforms.
This commit is contained in:
parent
50989f36fc
commit
0cab1e9602
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=197432
@ -169,9 +169,6 @@ main(int argc, char *argv[])
|
||||
if (ret != 0)
|
||||
errx(-1, "not ok 9 - setsockopt() after listen() failed with %d "
|
||||
"(%s)", errno, strerror(errno));
|
||||
if (len != sizeof(afa))
|
||||
errx(-1, "not ok 9 - setsockopt() after listen() returned wrong "
|
||||
"size (%d vs expected %d)", len, sizeof(afa));
|
||||
printf("ok 9 - setsockopt\n");
|
||||
|
||||
/*
|
||||
@ -186,7 +183,7 @@ main(int argc, char *argv[])
|
||||
"failed with %d (%s)", errno, strerror(errno));
|
||||
if (len != sizeof(afa))
|
||||
errx(-1, "not ok 10 - getsockopt() after setsockopet() after "
|
||||
"listen() returned wrong size (got %d expected %d)", len,
|
||||
"listen() returned wrong size (got %d expected %zd)", len,
|
||||
sizeof(afa));
|
||||
if (strcmp(afa.af_name, ACCF_NAME) != 0)
|
||||
errx(-1, "not ok 10 - getsockopt() after setsockopt() after "
|
||||
|
Loading…
Reference in New Issue
Block a user