*
* This file contains code which relates to authentication of users to Citadel.
*
+ * $Id$
*/
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include "webcit.h"
+#include "child.h"
/*
* Display the login screen
*/
-void display_login() {
+void display_login(void) {
char buf[256];
printf("HTTP/1.0 200 OK\n");
}
-void do_login() {
+void do_login(void) {
char buf[256];
- char actual_username[256];
if (!strcasecmp(bstr("action"), "Login")) {
serv_printf("USER %s", bstr("name"));
}
-void do_welcome() {
+void do_welcome(void) {
printf("HTTP/1.0 200 OK\n");
output_headers();
wprintf("<HTML><BODY>\n");
}
-void do_logout() {
+void do_logout(void) {
char buf[256];
strcpy(wc_username, "");