aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/test_options.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/test_options.c')
-rw-r--r--src/microhttpd/test_options.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/microhttpd/test_options.c b/src/microhttpd/test_options.c
index 3198c731..be033ae8 100644
--- a/src/microhttpd/test_options.c
+++ b/src/microhttpd/test_options.c
@@ -44,33 +44,33 @@ ahc_echo (void *cls,
44 const char *upload_data, size_t *upload_data_size, 44 const char *upload_data, size_t *upload_data_size,
45 void **unused) 45 void **unused)
46{ 46{
47 (void)cls; 47 (void) cls;
48 (void)connection; 48 (void) connection;
49 (void)url; 49 (void) url;
50 (void)method; 50 (void) method;
51 (void)version; 51 (void) version;
52 (void)upload_data; 52 (void) upload_data;
53 (void)upload_data_size; 53 (void) upload_data_size;
54 (void)unused; 54 (void) unused;
55 55
56 return 0; 56 return 0;
57} 57}
58 58
59static int 59static int
60test_wrap_loc (char *test_name, int (*test) (void)) 60test_wrap_loc (char *test_name, int (*test)(void))
61{ 61{
62 int ret; 62 int ret;
63 63
64 fprintf (stdout, "running test: %s ", test_name); 64 fprintf (stdout, "running test: %s ", test_name);
65 ret = test (); 65 ret = test ();
66 if (ret == 0) 66 if (ret == 0)
67 { 67 {
68 fprintf (stdout, "[pass]\n"); 68 fprintf (stdout, "[pass]\n");
69 } 69 }
70 else 70 else
71 { 71 {
72 fprintf (stdout, "[fail]\n"); 72 fprintf (stdout, "[fail]\n");
73 } 73 }
74 return ret; 74 return ret;
75} 75}
76 76
@@ -127,7 +127,7 @@ int
127main (int argc, char *const *argv) 127main (int argc, char *const *argv)
128{ 128{
129 unsigned int errorCount = 0; 129 unsigned int errorCount = 0;
130 (void)argc; (void)argv; /* Unused. Silent compiler warning. */ 130 (void) argc; (void) argv; /* Unused. Silent compiler warning. */
131 131
132 errorCount += test_wrap_loc ("ip addr option", &test_ip_addr_option); 132 errorCount += test_wrap_loc ("ip addr option", &test_ip_addr_option);
133 133