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