Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
bb088058
Commit
bb088058
authored
Jul 24, 1996
by
Per Cederqvist
Browse files
(main): Die with an error message if an unsupported output format
version is requested.
parent
167c742f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server/dbck.c
View file @
bb088058
/*
* $Id: dbck.c,v 0.3
1
1996/0
6/09 13:54:24 by
er
s
Exp $
* $Id: dbck.c,v 0.3
2
1996/0
7/24 23:38:52 ced
er 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.3
1
1996/0
6/09 13:54:24 by
er
s
Exp $"
;
static
char
*
rcsid
=
"$Id: dbck.c,v 0.3
2
1996/0
7/24 23:38:52 ced
er Exp $"
;
#include
"rcs.h"
USE
(
rcsid
);
...
...
@@ -1485,6 +1485,15 @@ main (int argc,
oformat
=
atoi
(
optarg
);
if
(
oformat
==
0
&&
*
optarg
!=
'0'
)
restart_kom
(
"%s: bad output format %s"
,
argv
[
0
],
optarg
);
/* Enumerate all supported output formats here. */
switch
(
oformat
)
{
case
0
:
/* Traditional. */
case
1
:
/* Introduced spring 1996 by David Byers. */
break
;
default:
restart_kom
(
"%s: unknown output format %ld"
,
argv
[
0
],
oformat
);
}
break
;
default:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment