Commit a7945918 authored by Per Cederqvist's avatar Per Cederqvist

(kom_perror): Was unused. Removed.

parent 4deecb4f
/*
* $Id: kom-errno.c,v 0.15 1998/07/08 13:41:31 ceder Exp $
* $Id: kom-errno.c,v 0.16 1998/10/06 07:14:36 ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994, 1995 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -31,7 +31,7 @@
static const char *
rcsid = "$Id: kom-errno.c,v 0.15 1998/07/08 13:41:31 ceder Exp $";
rcsid = "$Id: kom-errno.c,v 0.16 1998/10/06 07:14:36 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -44,145 +44,3 @@ Kom_err kom_errno = KOM_NO_ERROR;
/* Additional information about the error */
unsigned long err_stat = 0;
/* Note that kom_errout is defined in config.h */
void
kom_perror(void)
{
switch (kom_errno)
{
case KOM_NO_ERROR:
fprintf (kom_errout, "Why am I called? There was no error!\n");
break;
case KOM_NOT_IMPL:
fprintf(kom_errout, "Not implemented yet\n");
break;
case KOM_PWD:
fprintf(kom_errout, "Wrong/illegal password\n");
break;
case KOM_LOGIN:
fprintf(kom_errout, "Not logged in.\n");
break;
case KOM_LOGIN_DISALLOWED:
fprintf(kom_errout, "System is in 'singel-user mode'\n");
break;
case KOM_CONF_ZERO:
fprintf(kom_errout, "Attempt to use conference number 0.\n");
break;
case KOM_UNDEF_CONF:
fprintf(kom_errout, "Undefined or secret conference\n");
break;
case KOM_UNDEF_PERS:
fprintf(kom_errout, "Undefined or secret person\n");
break;
case KOM_ACCESS:
fprintf(kom_errout, "No 'read/write permission'\n");
break;
case KOM_SECRET_PUBLIC:
fprintf(kom_errout, "Cannot be secret and !rd_prot\n");
break;
case KOM_LETTER_BOX:
fprintf(kom_errout, "Cannot change letter_box flag\n");
break;
case KOM_PERM:
fprintf(kom_errout, "No permission\n");
break;
case KOM_NOT_MEMBER:
fprintf(kom_errout, "Not member in conf\n");
break;
case KOM_NO_SUCH_TEXT:
fprintf(kom_errout, "No such global text as %ld or no access\n",
err_stat);
break;
case KOM_NO_SUCH_LOCAL_TEXT:
fprintf(kom_errout, "No such local text as %ld\n", err_stat);
break;
case KOM_INDEX_OUT_OF_RANGE:
fprintf(kom_errout, "Index out of range\n");
break;
case KOM_BAD_NAME:
fprintf(kom_errout, "To short/long or contains illegal chars\n");
break;
case KOM_CONF_EXISTS:
fprintf(kom_errout, "Already exists\n");
break;
#if 0
case KOM_PERS_EXISTS:
fprintf(kom_errout, "Already exists\n");
break;
#endif
case KOM_LDB_ERR:
fprintf(kom_errout, "LDB_err\n");
break;
case KOM_ILL_MISC:
fprintf(kom_errout, "Illegal misc field at %ld.\n", err_stat);
break;
case KOM_ILLEGAL_INFO_TYPE:
fprintf(kom_errout, "Info_type parameter illegal. Client is buggy.\n");
break;
case KOM_ALREADY_RECIPIENT:
fprintf(kom_errout, "Already recipient to this text.\n");
break;
case KOM_NOT_RECIPIENT:
fprintf(kom_errout, "Not recipient.\n");
break;
case KOM_RECIPIENT_LIMIT:
fprintf(kom_errout, "Too many recipients.\n");
break;
case KOM_COMM_LIMIT:
fprintf(kom_errout, "Too many comments.\n");
break;
case KOM_FOOT_LIMIT:
fprintf(kom_errout, "Too many footnotes.\n");
break;
case KOM_NOT_AUTHOR:
fprintf(kom_errout, "Only the author may add footnotes.\n");
break;
case KOM_OBSOLETE:
fprintf (kom_errout, "Servern {r inte kompatibel med mig.\n");
break;
case KOM_LONG_STR:
fprintf (kom_errout, "F|r l}ng str{ng.\n");
break;
case KOM_OUT_OF_MEMORY:
fprintf (kom_errout, "Slut p} minne.\n");
break;
#ifndef COMPILE_CHECKS
default:
fprintf(kom_errout, "Unknown error %d\n", kom_errno);
break;
#endif
}
}
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