Commit 2d226d85 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(kom_perror): KOM_PERS_EXISTS no longer exists.

(kom_errno): Initialize to KOM_NO_ERROR, not to 0.
parent df9881f0
/*
* $Id: kom-errno.c,v 0.9 1994/04/05 07:54:40 ceder Exp $
* $Id: kom-errno.c,v 0.10 1994/08/29 17:58:07 ceder Exp $
* Copyright (C) 1991, 1992, 1993 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -30,7 +30,7 @@
*/
static char *rcsid = "$Id: kom-errno.c,v 0.9 1994/04/05 07:54:40 ceder Exp $";
static char *rcsid = "$Id: kom-errno.c,v 0.10 1994/08/29 17:58:07 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -39,7 +39,7 @@ USE(rcsid);
#include "kom-errno.h"
#include "config.h"
Kom_err kom_errno = 0;
Kom_err kom_errno = KOM_NO_ERROR;
/* Additional information about the error */
unsigned long err_stat = 0;
......@@ -58,7 +58,7 @@ kom_perror(void)
case KOM_NOT_IMPL:
fprintf(kom_errout, "Not implemented yet\n");
break;
case KOM_PWD:
fprintf(kom_errout, "Wrong/illegal password\n");
break;
......@@ -105,7 +105,7 @@ kom_perror(void)
case KOM_NO_SUCH_TEXT:
fprintf(kom_errout, "No such global text as %ld or no access\n",
err_stat);
err_stat);
break;
case KOM_NO_SUCH_LOCAL_TEXT:
......@@ -123,10 +123,12 @@ kom_perror(void)
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");
......
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