summaryrefslogtreecommitdiff
path: root/daemon/simple.c
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2004-08-17 20:59:04 +0000
committerStef Walter <stef@memberwebs.com>2004-08-17 20:59:04 +0000
commitd92564c87818157b09ddfbf3314406b765ca390a (patch)
treedc37024dded77c30d769852cce0952f1b886f36c /daemon/simple.c
parent4af582bf3aa65e0a4ebb5723047c4d1e94d12f15 (diff)
- Changed 'goto finally' to RETURN(xx)
- Added MYSQL support and tested it.
Diffstat (limited to 'daemon/simple.c')
-rw-r--r--daemon/simple.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/daemon/simple.c b/daemon/simple.c
index 8e4f8df..fca0e28 100644
--- a/daemon/simple.c
+++ b/daemon/simple.c
@@ -208,7 +208,7 @@ static int validate_basic(ha_request_t* rq, const char* user, const char* passwo
ha_lock(NULL);
/* Check the password */
- t2 = crypt(password, t);
+ t2 = (const char*)crypt(password, t);
ha_unlock(NULL);
@@ -326,7 +326,7 @@ ha_handler_t simple_handler =
bd_destroy, /* Uninitialization routine */
simple_config, /* Config routine */
bd_process, /* Processing routine */
- NULL, /* A default context */
+ &simple_defaults, /* A default context */
sizeof(simple_context_t) /* Size of the context */
};