From cb529b713f4882ac65a074ae8d87faa41d19168e Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 11 May 2018 23:40:58 +0200 Subject: checksrc: make sure sizeof() is used *with* parentheses ... and unify the source code to adhere. Closes #2563 --- tests/unit/unit1607.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/unit/unit1607.c') diff --git a/tests/unit/unit1607.c b/tests/unit/unit1607.c index 71c59939b..697b8b5c4 100644 --- a/tests/unit/unit1607.c +++ b/tests/unit/unit1607.c @@ -120,7 +120,7 @@ UNITTEST_START for(i = 0; i < testnum; ++i, curl_easy_reset(easy)) { int j; - int addressnum = sizeof tests[i].address / sizeof *tests[i].address; + int addressnum = sizeof(tests[i].address) / sizeof(*tests[i].address); struct Curl_addrinfo *addr; struct Curl_dns_entry *dns; struct curl_slist *list; -- cgit v1.2.3