+/* $Id$ */
+
#include <stdlib.h>
+#include <string.h>
#include <unistd.h>
#include <stdio.h>
#include <signal.h>
#include <sys/types.h>
#include "webcit.h"
+#include "child.h"
struct march {
struct march *next;
/*
* load the list of floors
*/
-void load_floorlist() {
+void load_floorlist(void) {
int a;
char buf[256];
/*
* remove a room from the march list
*/
-void remove_march(aaa)
-char *aaa; {
+void remove_march(char *aaa)
+{
struct march *mptr,*mptr2;
if (march==NULL) return;
}
-void listrms(variety)
-char *variety; {
+void listrms(char *variety)
+{
char buf[256];
char rmname[32];
int f;
/*
* list all rooms by floor
*/
-void list_all_rooms_by_floor() {
+void list_all_rooms_by_floor(void) {
int a;
char buf[256];
- char pic[256];
load_floorlist();
/*
* list all forgotten rooms
*/
-void zapped_list() {
- char buf[256];
-
+void zapped_list(void) {
wprintf("<CENTER><H1>Forgotten rooms</H1>\n");
listrms("LZRM -1");
wprintf("</CENTER><HR>\n");
/*
* read this room's info file (set v to 1 for verbose mode)
*/
-void readinfo(v)
-int v; {
+void readinfo(int v)
+{
char buf[256];
serv_puts("RINF");
* 1 = goto and display
* 2 = display only
*/
-void gotoroom(gname,display_name)
-char *gname;
-int display_name; {
+void gotoroom(char *gname, int display_name)
+{
char buf[256];
- char pic[256];
static long ls = 0L;
/*
* operation to goto a room
*/
-void dotgoto() {
+void dotgoto(void) {
gotoroom(bstr("room"),1);
}
* We start the search in the current room rather than the beginning to prevent
* two or more concurrent users from dragging each other back to the same room.
*/
-gotonext() {
- int a,newroom;
- FILE *fp;
+void gotonext(void) {
char buf[256];
struct march *mptr,*mptr2;
char next_room[32];
/*
* mark all messages in current room as having been read
*/
-void slrp_highest() {
+void slrp_highest(void) {
char buf[256];
/* set pointer */
/*
* un-goto the previous room
*/
-void ungoto() {
+void ungoto(void) {
char buf[256];
if (!strcmp(ugname,"")) return;
/*
* display the form for editing a room
*/
-int display_editroom() {
+int display_editroom(void) {
char buf[256];
char er_name[20];
char er_password[10];
/*
* save new parameters for a room
*/
-int editroom() {
+int editroom(void) {
char buf[256];
char er_name[20];
char er_password[10];
/*
* display the form for entering a new room
*/
-int display_entroom() {
+int display_entroom(void) {
char buf[256];
serv_puts("CRE8 0");
/*
* enter a new room
*/
-int entroom() {
+int entroom(void) {
char buf[256];
char er_name[20];
char er_type[20];
/*
* display the screen to enter a private room
*/
-void display_private(rname,req_pass)
-char *rname;
-int req_pass; {
+void display_private(char *rname, int req_pass)
+{
wprintf("<TABLE WIDTH=100% BORDER=0 BGCOLOR=770000><TR><TD>");
/*
* goto a private room
*/
-int goto_private() {
+int goto_private(void) {
char hold_rm[32];
char buf[256];
/*
* display the screen to zap a room
*/
-void display_zap() {
+void display_zap(void) {
char zaproom[32];
strcpy(zaproom, bstr("room"));
/*
* zap a room
*/
-int zap() {
+int zap(void) {
char zaproom[32];
char buf[256];