summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2007-09-09 03:56:26 +0000
committerChristian Grothoff <christian@grothoff.org>2007-09-09 03:56:26 +0000
commit5176c75854736ad6514a76778cb81ba93bdfff71 (patch)
tree6ae65d96ff6397461870ffa9d0aa17cc7106dcf2
parent21acb929f578eb8f876c235669b78d6b213ec315 (diff)
formatting
-rw-r--r--src/daemon/connection.c2
-rw-r--r--src/include/microhttpd.h35
2 files changed, 17 insertions, 20 deletions
diff --git a/src/daemon/connection.c b/src/daemon/connection.c
index 476d1c89..48f93dfd 100644
--- a/src/daemon/connection.c
+++ b/src/daemon/connection.c
@@ -594,7 +594,7 @@ MHD_parse_connection_headers (struct MHD_Connection *connection)
if (connection->bodyReceived == 1)
abort ();
- colon = NULL; /* make gcc happy */
+ colon = NULL; /* make gcc happy */
last = NULL;
while (NULL != (line = MHD_get_next_header_line (connection)))
{
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index c77ea6b9..a7f846ca 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -488,7 +488,7 @@ typedef int
const char *version,
const char *upload_data,
unsigned int *upload_data_size,
- void ** con_cls);
+ void **con_cls);
/**
* Signature of the callback used by MHD to notify the
@@ -503,9 +503,9 @@ typedef int
*/
typedef void
(*MHD_RequestCompletedCallback) (void *cls,
- struct MHD_Connection * connection,
- void ** con_cls,
- enum MHD_RequestTerminationCode toe);
+ struct MHD_Connection * connection,
+ void **con_cls,
+ enum MHD_RequestTerminationCode toe);
/**
* Iterator over key-value pairs. This iterator
@@ -576,11 +576,10 @@ typedef void (*MHD_ContentReaderFreeCallback) (void *cls);
*/
typedef int
(*MHD_IncrementalKeyValueIterator) (void *cls,
- enum MHD_ValueKind kind,
- const char *key,
- const char *value,
- size_t off,
- size_t size);
+ enum MHD_ValueKind kind,
+ const char *key,
+ const char *value,
+ size_t off, size_t size);
/**
* Start a webserver on the given port.
@@ -823,11 +822,11 @@ const char *MHD_get_response_header (struct MHD_Response *response,
* @return NULL on error (out of memory, unsupported encoding),
otherwise a PP handle
*/
-struct MHD_PostProcessor *
-MHD_create_post_processor(struct MHD_Connection * connection,
- unsigned int buffer_size,
- MHD_IncrementalKeyValueIterator ikvi,
- void * cls);
+struct MHD_PostProcessor *MHD_create_post_processor (struct MHD_Connection
+ *connection,
+ unsigned int buffer_size,
+ MHD_IncrementalKeyValueIterator
+ ikvi, void *cls);
/**
* Parse and process POST data.
@@ -844,15 +843,13 @@ MHD_create_post_processor(struct MHD_Connection * connection,
* (out-of-memory, iterator aborted, parse error)
*/
int
-MHD_post_process(struct MHD_PostProcessor * pp,
- const char * post_data,
- unsigned int post_data_len);
+MHD_post_process (struct MHD_PostProcessor *pp,
+ const char *post_data, unsigned int post_data_len);
/**
* Release PostProcessor resources.
*/
-void
-MHD_destroy_post_processor(struct MHD_PostProcessor * pp);
+void MHD_destroy_post_processor (struct MHD_PostProcessor *pp);
#if 0 /* keep Emacsens' auto-indent happy */