diff options
author | Christian Grothoff <christian@grothoff.org> | 2008-05-25 04:35:45 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2008-05-25 04:35:45 +0000 |
commit | dd433c0f8c77fa20626d57a9aece6bf5b9c1e62c (patch) | |
tree | ecd123e5a2ae5df637f1134b92a0f99b9109e9ca /src/daemon/postprocessor_large_test.c | |
parent | c51d65ffce7b0542a15afa4d7bb252df6a970b5c (diff) | |
download | libmicrohttpd-dd433c0f8c77fa20626d57a9aece6bf5b9c1e62c.tar.gz libmicrohttpd-dd433c0f8c77fa20626d57a9aece6bf5b9c1e62c.zip |
fixing lv formatting
Diffstat (limited to 'src/daemon/postprocessor_large_test.c')
-rw-r--r-- | src/daemon/postprocessor_large_test.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/daemon/postprocessor_large_test.c b/src/daemon/postprocessor_large_test.c index 549f606e..f3e1f478 100644 --- a/src/daemon/postprocessor_large_test.c +++ b/src/daemon/postprocessor_large_test.c | |||
@@ -48,7 +48,7 @@ value_checker (void *cls, | |||
48 | #if 0 | 48 | #if 0 |
49 | fprintf (stderr, | 49 | fprintf (stderr, |
50 | "VC: %u %u `%s' `%s' `%s' `%s' `%.*s'\n", | 50 | "VC: %u %u `%s' `%s' `%s' `%s' `%.*s'\n", |
51 | off, size, | 51 | off, size, |
52 | key, filename, content_type, transfer_encoding, size, data); | 52 | key, filename, content_type, transfer_encoding, size, data); |
53 | #endif | 53 | #endif |
54 | if (size == 0) | 54 | if (size == 0) |
@@ -72,17 +72,16 @@ test_simple_large () | |||
72 | unsigned int pos; | 72 | unsigned int pos; |
73 | 73 | ||
74 | pos = 0; | 74 | pos = 0; |
75 | memset (data, 'A', sizeof(data)); | 75 | memset (data, 'A', sizeof (data)); |
76 | memcpy (data, "key=", 4); | 76 | memcpy (data, "key=", 4); |
77 | data[sizeof(data)-1] = '\0'; | 77 | data[sizeof (data) - 1] = '\0'; |
78 | memset (&connection, 0, sizeof (struct MHD_Connection)); | 78 | memset (&connection, 0, sizeof (struct MHD_Connection)); |
79 | memset (&header, 0, sizeof (struct MHD_HTTP_Header)); | 79 | memset (&header, 0, sizeof (struct MHD_HTTP_Header)); |
80 | connection.headers_received = &header; | 80 | connection.headers_received = &header; |
81 | header.header = MHD_HTTP_HEADER_CONTENT_TYPE; | 81 | header.header = MHD_HTTP_HEADER_CONTENT_TYPE; |
82 | header.value = MHD_HTTP_POST_ENCODING_FORM_URLENCODED; | 82 | header.value = MHD_HTTP_POST_ENCODING_FORM_URLENCODED; |
83 | header.kind = MHD_HEADER_KIND; | 83 | header.kind = MHD_HEADER_KIND; |
84 | pp = MHD_create_post_processor (&connection, | 84 | pp = MHD_create_post_processor (&connection, 1024, &value_checker, &pos); |
85 | 1024, &value_checker, &pos); | ||
86 | i = 0; | 85 | i = 0; |
87 | size = strlen (data); | 86 | size = strlen (data); |
88 | while (i < size) | 87 | while (i < size) |
@@ -92,7 +91,7 @@ test_simple_large () | |||
92 | i += delta; | 91 | i += delta; |
93 | } | 92 | } |
94 | MHD_destroy_post_processor (pp); | 93 | MHD_destroy_post_processor (pp); |
95 | if (pos != sizeof(data) - 5) /* minus 0-termination and 'key=' */ | 94 | if (pos != sizeof (data) - 5) /* minus 0-termination and 'key=' */ |
96 | return 1; | 95 | return 1; |
97 | return 0; | 96 | return 0; |
98 | } | 97 | } |