diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-04-08 23:36:41 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-04-08 23:36:41 +0200 |
commit | de872dea2d88f183c3f434c694acdcdb373f639c (patch) | |
tree | fb9084eb931c9789060e65ee3be3dc5adcb30e73 /src/examples/http_compression.c | |
parent | 6347f514aa2388e774d5bf356df8046864e5f73c (diff) | |
download | libmicrohttpd-de872dea2d88f183c3f434c694acdcdb373f639c.tar.gz libmicrohttpd-de872dea2d88f183c3f434c694acdcdb373f639c.zip |
define and use 'enum MHD_Result'
Diffstat (limited to 'src/examples/http_compression.c')
-rw-r--r-- | src/examples/http_compression.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/examples/http_compression.c b/src/examples/http_compression.c index f7d8db21..0419a803 100644 --- a/src/examples/http_compression.c +++ b/src/examples/http_compression.c | |||
@@ -31,7 +31,7 @@ | |||
31 | "hello, hello. This is a 'hello world' message for the world, " \ | 31 | "hello, hello. This is a 'hello world' message for the world, " \ |
32 | "repeat, for the world.</body></html>" | 32 | "repeat, for the world.</body></html>" |
33 | 33 | ||
34 | static int | 34 | static enum MHD_Result |
35 | can_compress (struct MHD_Connection *con) | 35 | can_compress (struct MHD_Connection *con) |
36 | { | 36 | { |
37 | const char *ae; | 37 | const char *ae; |
@@ -60,7 +60,7 @@ can_compress (struct MHD_Connection *con) | |||
60 | } | 60 | } |
61 | 61 | ||
62 | 62 | ||
63 | static int | 63 | static enum MHD_Result |
64 | body_compress (void **buf, | 64 | body_compress (void **buf, |
65 | size_t *buf_size) | 65 | size_t *buf_size) |
66 | { | 66 | { |
@@ -90,7 +90,7 @@ body_compress (void **buf, | |||
90 | } | 90 | } |
91 | 91 | ||
92 | 92 | ||
93 | static int | 93 | static enum MHD_Result |
94 | ahc_echo (void *cls, | 94 | ahc_echo (void *cls, |
95 | struct MHD_Connection *connection, | 95 | struct MHD_Connection *connection, |
96 | const char *url, | 96 | const char *url, |
@@ -99,8 +99,8 @@ ahc_echo (void *cls, | |||
99 | const char *upload_data, size_t *upload_data_size, void **ptr) | 99 | const char *upload_data, size_t *upload_data_size, void **ptr) |
100 | { | 100 | { |
101 | struct MHD_Response *response; | 101 | struct MHD_Response *response; |
102 | int ret; | 102 | enum MHD_Result ret; |
103 | int comp; | 103 | enum MHD_Result comp; |
104 | size_t body_len; | 104 | size_t body_len; |
105 | char *body_str; | 105 | char *body_str; |
106 | (void) cls; /* Unused. Silent compiler warning. */ | 106 | (void) cls; /* Unused. Silent compiler warning. */ |