diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-06-22 15:16:11 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-06-22 15:16:11 +0200 |
commit | 832739556b765571f80520b91bdad5f14f6aa1b4 (patch) | |
tree | 79a7bf9a1c523466a3919a3c862426f17369a924 /src/testzzuf/test_long_header.c | |
parent | 65a322cfe842d6028a0b27bc114b34ea178903eb (diff) | |
download | libmicrohttpd-832739556b765571f80520b91bdad5f14f6aa1b4.tar.gz libmicrohttpd-832739556b765571f80520b91bdad5f14f6aa1b4.zip |
some minor code cleaning issues
Diffstat (limited to 'src/testzzuf/test_long_header.c')
-rw-r--r-- | src/testzzuf/test_long_header.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/testzzuf/test_long_header.c b/src/testzzuf/test_long_header.c index fd0598f1..de35b58a 100644 --- a/src/testzzuf/test_long_header.c +++ b/src/testzzuf/test_long_header.c | |||
@@ -224,10 +224,11 @@ int | |||
224 | main (int argc, char *const *argv) | 224 | main (int argc, char *const *argv) |
225 | { | 225 | { |
226 | unsigned int errorCount = 0; | 226 | unsigned int errorCount = 0; |
227 | (void)argc; /* Unused. Silent compiler warning. */ | 227 | (void) argc; /* Unused. Silent compiler warning. */ |
228 | const char *sl; | ||
228 | 229 | ||
229 | oneone = (NULL != strrchr (argv[0], (int) '/')) ? | 230 | sl = strrchr (argv[0], (int) '/'); |
230 | (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0; | 231 | oneone = (NULL != sl) ? (NULL != strstr (sl), "11")) : 0; |
231 | if (0 != curl_global_init (CURL_GLOBAL_WIN32)) | 232 | if (0 != curl_global_init (CURL_GLOBAL_WIN32)) |
232 | return 2; | 233 | return 2; |
233 | errorCount += testLongUrlGet (); | 234 | errorCount += testLongUrlGet (); |