Hi Small fixes to the examples.
- Lauri
>From 9dba1acf18cf18f3bee7365c577157d96f002045 Mon Sep 17 00:00:00 2001 From: Lauri Kasanen <[email protected]> Date: Thu, 23 Aug 2012 16:38:23 +0300 Subject: [PATCH 1/2] examples: Remove unused variables, fix two warnings Signed-off-by: Lauri Kasanen <[email protected]> --- examples/list.c | 2 -- examples/quiz.c | 6 ++---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/examples/list.c b/examples/list.c index 22ea511..278fa8b 100644 --- a/examples/list.c +++ b/examples/list.c @@ -69,8 +69,6 @@ static cb_data listf = list; int main() { - int ret; - // Bind to all interfaces, port 2001, default plugins, no directory. // Lacking the directory means that no files can be accessed, just what we want. // We use the data callback. diff --git a/examples/quiz.c b/examples/quiz.c index 28435c3..b17997e 100644 --- a/examples/quiz.c +++ b/examples/quiz.c @@ -43,7 +43,7 @@ static void front() { "<br><br><form action=/ method=post>" "<input type=radio name=q1 value=yes>Why yes I have<br>" "<input type=radio name=q1 value=no>No, who's he?<br>" - "<input type=radio name=q1 value=who>Canada<hr width='20%'>" + "<input type=radio name=q1 value=who>Canada<hr width='20%%'>" "<input type=submit>" "</form>" "</center></body></html>"); @@ -71,7 +71,7 @@ static int list(const mklib_session *sr, const char *vhost, const char *url, char *header) { if (strcmp(url, "/image.png") == 0) { - *content = monkey_head_png; + *content = (char *) monkey_head_png; *content_len = sizeof(monkey_head_png); sprintf(header, "Content-type: image/png"); @@ -102,8 +102,6 @@ static cb_data listf = list; int main() { - int ret; - // Bind to all interfaces, port 2001, default plugins, no directory. // Lacking the directory means that no files can be accessed, just what we want. // We use the data callback. -- 1.7.2.1
_______________________________________________ Monkey mailing list [email protected] http://lists.monkey-project.com/listinfo/monkey
