We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7143145 + 4017017 commit 6313a20Copy full SHA for 6313a20
tests/core/posix.c
@@ -94,10 +94,10 @@ void test_core_posix__inet_pton(void)
94
cl_assert(p_inet_pton(AF_INET, "10.foo.bar.1", &addr) == 0);
95
96
/* Test unsupported address families */
97
- cl_git_fail(p_inet_pton(12, "52.472", NULL)); /* AF_DECnet */
+ cl_git_fail(p_inet_pton(12, "52.472", &addr)); /* AF_DECnet */
98
cl_assert_equal_i(EAFNOSUPPORT, errno);
99
100
- cl_git_fail(p_inet_pton(5, "315.124", NULL)); /* AF_CHAOS */
+ cl_git_fail(p_inet_pton(5, "315.124", &addr)); /* AF_CHAOS */
101
102
}
103
0 commit comments