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

(delete_misc): restart_kom requires a terminating newline.

(main): Likewise.
parent ebd7b0c1
/*
* $Id: dbck.c,v 0.34 1996/07/28 23:43:27 ceder Exp $
* $Id: dbck.c,v 0.35 1996/08/02 21:54:57 ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994, 1995 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -28,7 +28,7 @@
* Author: Per Cederqvist.
*/
static char *rcsid = "$Id: dbck.c,v 0.34 1996/07/28 23:43:27 ceder Exp $";
static char *rcsid = "$Id: dbck.c,v 0.35 1996/08/02 21:54:57 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -343,7 +343,7 @@ delete_misc (Text_stat *tstat,
if (misc < tstat->misc_items
|| misc >= tstat->misc_items + tstat->no_of_misc )
{
restart_kom("delete_misc() - misc out of range");
restart_kom("delete_misc() - misc out of range\n");
}
ready = FALSE;
......@@ -1399,31 +1399,31 @@ main (int argc,
case OPT_PERS_PRESENTATION_CONF:
pers_pres_conf = atoi(optarg);
if (pers_pres_conf == 0)
restart_kom("%s: bad conference number %s", argv[0], optarg);
restart_kom("%s: bad conference number %s\n", argv[0], optarg);
break;
case OPT_CONF_PRESENTATION_CONF:
conf_pres_conf = atoi(optarg);
if (conf_pres_conf == 0)
restart_kom("%s: bad conference number %s", argv[0], optarg);
restart_kom("%s: bad conference number %s\n", argv[0], optarg);
break;
case OPT_MOTD_CONF:
motd_conf = atoi(optarg);
if (motd_conf == 0)
restart_kom("%s: bad conference number %s", argv[0], optarg);
restart_kom("%s: bad conference number %s\n", argv[0], optarg);
break;
case OPT_MOTD_OF_KOM:
motd_of_lyskom = atoi(optarg);
if (motd_of_lyskom == 0 && *optarg != '0')
restart_kom("%s: bad text number %s", argv[0], optarg);
restart_kom("%s: bad text number %s\n", argv[0], optarg);
break;
case OPT_KOM_NEWS_CONF:
kom_news_conf = atoi(optarg);
if (kom_news_conf == 0)
restart_kom("%s: bad conference number %s", argv[0], optarg);
restart_kom("%s: bad conference number %s\n", argv[0], optarg);
break;
#ifndef NDEBUG
......@@ -1484,7 +1484,7 @@ main (int argc,
case 'o': /* Select output format */
oformat = atoi(optarg);
if (oformat == 0 && *optarg != '0')
restart_kom("%s: bad output format %s", argv[0], optarg);
restart_kom("%s: bad output format %s\n", argv[0], optarg);
/* Enumerate all supported output formats here. */
switch (oformat)
{
......@@ -1492,7 +1492,8 @@ main (int argc,
case 1: /* Introduced spring 1996 by David Byers. */
break;
default:
restart_kom("%s: unknown output format %ld", argv[0], oformat);
restart_kom("%s: unknown output format %ld\n",
argv[0], oformat);
}
break;
......
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