Commit 86756dab authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Check HAVE_VFPRINTF, and use alternative definitions of log and

restart_kom if no vfprintf() is available.
parent ffbd2f06
/*
* $Id: dbck.c,v 0.14 1993/10/12 18:41:49 ceder Exp $
* $Id: dbck.c,v 0.15 1993/10/13 00:16:58 ceder Exp $
* Copyright (C) 1991 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.14 1993/10/12 18:41:49 ceder Exp $";
static char *rcsid = "$Id: dbck.c,v 0.15 1993/10/13 00:16:58 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -82,6 +82,7 @@ static Person_scratchpad *person_scratchpad[MAX_CONF];
int buglevel = 0;
#endif
#ifdef HAVE_VFPRINTF
extern void
log (const char * format, ...)
{
......@@ -93,7 +94,16 @@ log (const char * format, ...)
va_end(AP);
}
#else
extern void
log (const char * format,
int a, int b, int c, int d, int e, int f, int g)
{
fprintf(stdout, format, a, b, c, d, e, f, g);
}
#endif
#ifdef HAVE_VFPRINTF
extern void
restart_kom (const char * format, ...)
{
......@@ -106,6 +116,15 @@ restart_kom (const char * format, ...)
va_end(AP);
exit(1);
}
#lese
extern void
restart_kom (const char * format,
int a, int b, int c, int d, int e, int f, int g)
{
fprintf(stdout, format, a, b, c, d, e, f, g);
exit(1);
}
#endif
static Person_scratchpad *
alloc_person_scratchpad(void)
......
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