Commit f1860160 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(fparse_membership): Now static.

(fparse_membership, fparse_membership_list, fparse_conf_list,
	fparse_mark_list, fparse_text_stat, fparse_text_list,
	fparse_string, fparse_member_list, fparse_who_info,
	fparse_who_info_list, fparse_misc_info): Set kom_errno to
	KOM_LDB_ERR, not KOM_SERVER_IS_CRAZY.
parent c089429b
/*
* $Id: ram-parse.c,v 0.19 1994/10/22 13:17:30 ceder Exp $
* $Id: ram-parse.c,v 0.20 1994/12/31 11:56:13 ceder Exp $
* Copyright (C) 1991, 1993, 1994 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -29,7 +29,7 @@
* ram-parse.c -- parse objects from disk file.
*/
static char *rcsid = "$Id: ram-parse.c,v 0.19 1994/10/22 13:17:30 ceder Exp $";
static char *rcsid = "$Id: ram-parse.c,v 0.20 1994/12/31 11:56:13 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -259,7 +259,7 @@ fparse_person(FILE *fp,
return OK;
}
Success
static Success
fparse_membership(FILE *fp,
Membership *mship)
{
......@@ -293,7 +293,7 @@ fparse_membership(FILE *fp,
fskipwhite(fp);
if ( getc(fp) != '}' )
{
kom_errno = KOM_SERVER_IS_CRAZY;
kom_errno = KOM_LDB_ERR;
log("fparse_membership(): expected '}' at pos %d.\n",
ftell(fp));
return FAILURE;
......@@ -313,7 +313,7 @@ fparse_membership(FILE *fp,
default:
log("fparse_membership(): expected '*' or '{' at pos %d.\n",
ftell(fp));
kom_errno = KOM_SERVER_IS_CRAZY;
kom_errno = KOM_LDB_ERR;
return FAILURE;
}
}
......@@ -324,7 +324,7 @@ fparse_membership(FILE *fp,
{
log("fparse_membership(): expected '*' at pos %d.\n",
ftell(fp));
kom_errno = KOM_SERVER_IS_CRAZY;
kom_errno = KOM_LDB_ERR;
return FAILURE;
}
......@@ -382,7 +382,7 @@ fparse_membership_list(FILE *fp,
{
log("fparse_membership_list(): expected '}' at pos %d.\n",
ftell(fp));
kom_errno = KOM_SERVER_IS_CRAZY;
kom_errno = KOM_LDB_ERR;
return FAILURE;
}
......@@ -402,7 +402,7 @@ fparse_membership_list(FILE *fp,
default:
log("fparse_membership_list(): expected '*' or '{' at pos %d.\n",
ftell(fp));
kom_errno = KOM_SERVER_IS_CRAZY;
kom_errno = KOM_LDB_ERR;
return FAILURE;
}
}
......@@ -413,7 +413,7 @@ fparse_membership_list(FILE *fp,
{
log("fparse_membership_list(): expected '*' at pos %d.\n",
ftell(fp));
kom_errno = KOM_SERVER_IS_CRAZY;
kom_errno = KOM_LDB_ERR;
return FAILURE;
}
if ( result->confs != NULL )
......@@ -456,7 +456,7 @@ fparse_conf_list(FILE *fp,
{
log("fparse_conf_list(): expected '}' at pos %d.\n",
ftell(fp));
kom_errno = KOM_SERVER_IS_CRAZY;
kom_errno = KOM_LDB_ERR;
return FAILURE;
}
......@@ -471,7 +471,7 @@ fparse_conf_list(FILE *fp,
default:
log("fparse_conf_list(): expected '*' or '{' at pos %d.\n",
ftell(fp));
kom_errno = KOM_SERVER_IS_CRAZY;
kom_errno = KOM_LDB_ERR;
return FAILURE;
}
}
......@@ -482,7 +482,7 @@ fparse_conf_list(FILE *fp,
{
log("fparse_conf_list(): expected '*' at pos %d.\n",
ftell(fp));
kom_errno = KOM_SERVER_IS_CRAZY;
kom_errno = KOM_LDB_ERR;
return FAILURE;
}
if ( result->conf_nos != NULL )
......@@ -519,7 +519,7 @@ fparse_conf_list(FILE *fp,
{
log("fparse_conf_list(): expected '}' at pos %d.\n",
ftell(fp));
kom_errno = KOM_SERVER_IS_CRAZY;
kom_errno = KOM_LDB_ERR;
return FAILURE;
}
......@@ -534,7 +534,7 @@ fparse_conf_list(FILE *fp,
default:
log("fparse_conf_list(): expected '*' or '+' at pos %d.\n",
ftell(fp));
kom_errno = KOM_SERVER_IS_CRAZY;
kom_errno = KOM_LDB_ERR;
return FAILURE;
}
}
......@@ -545,7 +545,7 @@ fparse_conf_list(FILE *fp,
{
log("fparse_conf_list(): expected '*' at pos %d.\n",
ftell(fp));
kom_errno = KOM_SERVER_IS_CRAZY;
kom_errno = KOM_LDB_ERR;
return FAILURE;
}
......@@ -594,7 +594,7 @@ fparse_mark_list(FILE *fp,
{
log("fparse_mark_list(): expected '}' at pos %d.\n",
ftell(fp));
kom_errno = KOM_SERVER_IS_CRAZY;
kom_errno = KOM_LDB_ERR;
return FAILURE;
}
......@@ -611,7 +611,7 @@ fparse_mark_list(FILE *fp,
default:
log("fparse_mark_list(): expected '*' or '{' at pos %d.\n",
ftell(fp));
kom_errno = KOM_SERVER_IS_CRAZY;
kom_errno = KOM_LDB_ERR;
return FAILURE;
}
}
......@@ -621,7 +621,7 @@ fparse_mark_list(FILE *fp,
if ( getc(fp) != '*' )
{
log("fparse_mark_list(): expected '*' at pos %d.\n", ftell(fp));
kom_errno = KOM_SERVER_IS_CRAZY;
kom_errno = KOM_LDB_ERR;
return FAILURE;
}
if ( result->marks != NULL )
......@@ -702,7 +702,7 @@ fparse_text_stat(FILE *fp,
{
log("fparse_text_stat(): expected '}' at pos %d.\n",
ftell(fp));
kom_errno = KOM_SERVER_IS_CRAZY;
kom_errno = KOM_LDB_ERR;
return FAILURE;
}
}
......@@ -727,7 +727,7 @@ fparse_text_stat(FILE *fp,
default:
log("fparse_text_stat(): expected '*' or '}' at pos %d.\n",
ftell(fp));
kom_errno = KOM_SERVER_IS_CRAZY;
kom_errno = KOM_LDB_ERR;
return FAILURE;
}
}
......@@ -749,7 +749,7 @@ fparse_text_stat(FILE *fp,
{
log("fparse_text_stat(): expected '*' at pos %d.\n",
ftell(fp));
kom_errno = KOM_SERVER_IS_CRAZY;
kom_errno = KOM_LDB_ERR;
return FAILURE;
}
}
......@@ -800,7 +800,7 @@ fparse_text_list(FILE *fp,
{
log("fparse_text_list(): expected '}' at pos %d.\n",
ftell(fp));
kom_errno = KOM_SERVER_IS_CRAZY;
kom_errno = KOM_LDB_ERR;
return FAILURE;
}
......@@ -817,7 +817,7 @@ fparse_text_list(FILE *fp,
default:
log("fparse_text_list(): expected '*' or '{' at pos %d.\n",
ftell(fp));
kom_errno = KOM_SERVER_IS_CRAZY;
kom_errno = KOM_LDB_ERR;
return FAILURE;
}
}
......@@ -828,7 +828,7 @@ fparse_text_list(FILE *fp,
{
log("fparse_text_list(): expected '*' at pos %d.\n",
ftell(fp));
kom_errno = KOM_SERVER_IS_CRAZY;
kom_errno = KOM_LDB_ERR;
return FAILURE;
}
if ( result->texts != NULL )
......@@ -867,7 +867,7 @@ fparse_string(FILE *fp,
{
log("fparse_string(): expected 'H' at pos %d.\n",
ftell(fp));
kom_errno = KOM_SERVER_IS_CRAZY;
kom_errno = KOM_LDB_ERR;
return FAILURE;
}
......@@ -883,7 +883,7 @@ fparse_string(FILE *fp,
!= result->len )
{
log("fparse_string(): unexpected eof at pos %d.\n", ftell(fp));
kom_errno = KOM_SERVER_IS_CRAZY;
kom_errno = KOM_LDB_ERR;
return FAILURE;
}
......@@ -925,7 +925,7 @@ fparse_member_list(FILE *fp,
{
log("fparse_member_list(): expected '}' at pos %d.\n",
ftell(fp));
kom_errno = KOM_SERVER_IS_CRAZY;
kom_errno = KOM_LDB_ERR;
return FAILURE;
}
......@@ -942,7 +942,7 @@ fparse_member_list(FILE *fp,
default:
log("fparse_member_list(): expected '*' or '{' at pos %d.\n",
ftell(fp));
kom_errno = KOM_SERVER_IS_CRAZY;
kom_errno = KOM_LDB_ERR;
return FAILURE;
}
}
......@@ -952,7 +952,7 @@ fparse_member_list(FILE *fp,
if ( getc(fp) != '*' )
{
log("fparse_member_list(): expected '*' at pos %d.\n", ftell(fp));
kom_errno = KOM_SERVER_IS_CRAZY;
kom_errno = KOM_LDB_ERR;
return FAILURE;
}
if ( result->members != NULL )
......@@ -1052,7 +1052,7 @@ fparse_who_info(FILE *fp,
if ( fparse_string(fp, &result->what_am_i_doing) != OK )
{
log("fparse_who_info(): parse error.\n");
kom_errno = KOM_SERVER_IS_CRAZY;
kom_errno = KOM_LDB_ERR;
return FAILURE;
}
......@@ -1099,7 +1099,7 @@ fparse_who_info_list(FILE *fp,
{
log("fparse_who_info_list(): expected '}' at pos %d.\n",
ftell(fp));
kom_errno = KOM_SERVER_IS_CRAZY;
kom_errno = KOM_LDB_ERR;
return FAILURE;
}
......@@ -1116,7 +1116,7 @@ fparse_who_info_list(FILE *fp,
default:
log("fparse_who_info_list(): expected '*' or '{' at pos %d.\n",
ftell(fp));
kom_errno = KOM_SERVER_IS_CRAZY;
kom_errno = KOM_LDB_ERR;
return FAILURE;
}
}
......@@ -1127,7 +1127,7 @@ fparse_who_info_list(FILE *fp,
{
log("fparse_who_info_list(): expected '*' at pos %d.\n",
ftell(fp));
kom_errno = KOM_SERVER_IS_CRAZY;
kom_errno = KOM_LDB_ERR;
return FAILURE;
}
if ( result->info != NULL )
......@@ -1192,7 +1192,7 @@ fparse_misc_info(FILE *fp,
default:
log("fparse_misc_info(): illegal info_type %d at pos %d.\n",
result->type, ftell(fp));
kom_errno = KOM_SERVER_IS_CRAZY;
kom_errno = KOM_LDB_ERR;
return FAILURE;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment