From 8e94d40e90b5ed006090af64ff7017a2d4f1a802 Mon Sep 17 00:00:00 2001 From: snowdrop Date: Sun, 9 Jul 2006 16:24:18 +0000 Subject: ported logging function to a seperate file (nanohttp-logging.*) and renamed all logging functions. --- examples/nanohttp/http_server.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'examples/nanohttp/http_server.c') diff --git a/examples/nanohttp/http_server.c b/examples/nanohttp/http_server.c index 33e60ce..348a1d7 100644 --- a/examples/nanohttp/http_server.c +++ b/examples/nanohttp/http_server.c @@ -1,5 +1,5 @@ /****************************************************************** -* $Id: http_server.c,v 1.3 2006/04/21 08:40:37 m0gg Exp $ +* $Id: http_server.c,v 1.4 2006/07/09 16:24:19 snowdrop Exp $ * * CSOAP Project: A http client/server library in C (example) * Copyright (C) 2003 Ferhat Ayaz @@ -24,6 +24,7 @@ #include #include +#include #include static int simple_authenticator(hrequest_t *req, const char *user, const char *password) @@ -141,7 +142,7 @@ static void root_service(httpd_conn_t *conn, hrequest_t *req) int main(int argc, char *argv[]) { - log_set_level(HLOG_INFO); + hlog_set_level(HLOG_INFO); if (httpd_init(argc, argv)) { -- cgit v1.1-32-gdbae