summaryrefslogtreecommitdiff
path: root/omapip/errwarn.c
diff options
context:
space:
mode:
authorTed Lemon <source@isc.org>2000-02-01 03:19:56 +0000
committerTed Lemon <source@isc.org>2000-02-01 03:19:56 +0000
commitcfdfb9f126bb8900fa60c4ac5c3326986e5708e7 (patch)
tree81707664b94650775286640e2dab3dbf9baee6c6 /omapip/errwarn.c
parentfb6297b12be9c65634bd10f8effe1fe76bf07cba (diff)
downloadisc-dhcp-cfdfb9f126bb8900fa60c4ac5c3326986e5708e7.tar.gz
AIX and Digital Unix compatibility fixes.
Diffstat (limited to 'omapip/errwarn.c')
-rw-r--r--omapip/errwarn.c26
1 files changed, 9 insertions, 17 deletions
diff --git a/omapip/errwarn.c b/omapip/errwarn.c
index 018a6399..298bbdd0 100644
--- a/omapip/errwarn.c
+++ b/omapip/errwarn.c
@@ -29,7 +29,7 @@
#ifndef lint
static char copyright[] =
-"$Id: errwarn.c,v 1.2 2000/01/26 14:56:05 mellon Exp $ Copyright (c) 1996 The Internet Software Consortium. All rights reserved.\n";
+"$Id: errwarn.c,v 1.3 2000/02/01 03:19:52 mellon Exp $ Copyright (c) 1996 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include <omapip/omapip_p.h>
@@ -48,15 +48,13 @@ static char fbuf [1024];
/* Log an error message, then exit... */
-void log_fatal (ANSI_DECL(const char *) fmt, VA_DOTDOTDOT)
- KandR (char *fmt;)
- va_dcl
+void log_fatal (const char * fmt, ... )
{
va_list list;
do_percentm (fbuf, fmt);
- VA_start (list, fmt);
+ va_start (list, fmt);
vsnprintf (mbuf, sizeof mbuf, fbuf, list);
va_end (list);
@@ -82,15 +80,13 @@ void log_fatal (ANSI_DECL(const char *) fmt, VA_DOTDOTDOT)
/* Log an error message... */
-int log_error (ANSI_DECL (const char *) fmt, VA_DOTDOTDOT)
- KandR (char *fmt;)
- va_dcl
+int log_error (const char * fmt, ...)
{
va_list list;
do_percentm (fbuf, fmt);
- VA_start (list, fmt);
+ va_start (list, fmt);
vsnprintf (mbuf, sizeof mbuf, fbuf, list);
va_end (list);
@@ -108,15 +104,13 @@ int log_error (ANSI_DECL (const char *) fmt, VA_DOTDOTDOT)
/* Log a note... */
-int log_info (ANSI_DECL (const char *) fmt, VA_DOTDOTDOT)
- KandR (char *fmt;)
- va_dcl
+int log_info (const char *fmt, ...)
{
va_list list;
do_percentm (fbuf, fmt);
- VA_start (list, fmt);
+ va_start (list, fmt);
vsnprintf (mbuf, sizeof mbuf, fbuf, list);
va_end (list);
@@ -134,15 +128,13 @@ int log_info (ANSI_DECL (const char *) fmt, VA_DOTDOTDOT)
/* Log a debug message... */
-int log_debug (ANSI_DECL (const char *) fmt, VA_DOTDOTDOT)
- KandR (char *fmt;)
- va_dcl
+int log_debug (const char *fmt, ...)
{
va_list list;
do_percentm (fbuf, fmt);
- VA_start (list, fmt);
+ va_start (list, fmt);
vsnprintf (mbuf, sizeof mbuf, fbuf, list);
va_end (list);