diff options
Diffstat (limited to 'doc/examples/simplepost.c')
-rw-r--r-- | doc/examples/simplepost.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/examples/simplepost.c b/doc/examples/simplepost.c index 0faa0948..52146ce3 100644 --- a/doc/examples/simplepost.c +++ b/doc/examples/simplepost.c | |||
@@ -41,8 +41,8 @@ const char *askpage = | |||
41 | <input type=\"submit\" value=\" Send \"></form>\ | 41 | <input type=\"submit\" value=\" Send \"></form>\ |
42 | </body></html>"; | 42 | </body></html>"; |
43 | 43 | ||
44 | const char *greetingpage = | 44 | #define GREETINGPAGE \ |
45 | "<html><body><h1>Welcome, %s!</center></h1></body></html>"; | 45 | "<html><body><h1>Welcome, %s!</center></h1></body></html>" |
46 | 46 | ||
47 | const char *errorpage = | 47 | const char *errorpage = |
48 | "<html><body>This doesn't seem to be right.</body></html>"; | 48 | "<html><body>This doesn't seem to be right.</body></html>"; |
@@ -88,7 +88,7 @@ iterate_post (void *coninfo_cls, enum MHD_ValueKind kind, const char *key, | |||
88 | if (! answerstring) | 88 | if (! answerstring) |
89 | return MHD_NO; | 89 | return MHD_NO; |
90 | 90 | ||
91 | snprintf (answerstring, MAXANSWERSIZE, greetingpage, data); | 91 | snprintf (answerstring, MAXANSWERSIZE, GREETINGPAGE, data); |
92 | con_info->answerstring = answerstring; | 92 | con_info->answerstring = answerstring; |
93 | } | 93 | } |
94 | else | 94 | else |