summaryrefslogtreecommitdiff
path: root/tests/unit/unit1607.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-05-11 23:40:58 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-05-14 10:59:11 +0200
commiteaf3200f7f08cd7ee5afede3b5576cdac0266665 (patch)
treee961f65ad27632ddb6e3fd2e38cdaacef808e047 /tests/unit/unit1607.c
parent07b9826541ec429433495d237301d59a5d8bfd22 (diff)
downloadcurl-eaf3200f7f08cd7ee5afede3b5576cdac0266665.tar.gz
checksrc: make sure sizeof() is used *with* parenthesesbagder/unify-sizeof
... and unify the source code to adhere.
Diffstat (limited to 'tests/unit/unit1607.c')
-rw-r--r--tests/unit/unit1607.c2
1 files changed, 1 insertions, 1 deletions
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;