diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/fastcgi.c (renamed from examples/fastcgi.todo) | 3 | ||||
-rw-r--r-- | examples/upload.c | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/examples/fastcgi.todo b/examples/fastcgi.c index 5d3c4b1..16668f3 100644 --- a/examples/fastcgi.todo +++ b/examples/fastcgi.c @@ -12,13 +12,12 @@ void response(magi_request *r) "</html>"); } -int main(int argc, char const *argv[]) +int main() { magi_session session; magi_request request; magi_request_init(&request); magi_session_init(&session); - magi_session_inet(&session, "localhost", "9973"); magi_session_unix(&session, "unix.sock"); while (magi_fastcgi(&session, &request)) { if (request.error) { diff --git a/examples/upload.c b/examples/upload.c index 9a16dd1..bf8eed1 100644 --- a/examples/upload.c +++ b/examples/upload.c @@ -4,8 +4,8 @@ void response(magi_request *r) { - char *name = magi_request_param(r, "name"); - magi_file *data = magi_request_file(r, "data"); + char *name = magi_request_param(r, "name"); + const magi_file *data = magi_request_file(r, "data"); magi_response(r, "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' " "'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>" |