summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Lemon <source@isc.org>1996-08-28 01:34:55 +0000
committerTed Lemon <source@isc.org>1996-08-28 01:34:55 +0000
commitb68121296a51bee308e4e2804850cd84126ef85e (patch)
tree02bcd557b5aa86e7ec083d5a0e9103daaa3a843a
parent6aa71eebb9e088a57a5c4f3a015f303a8ea2b637 (diff)
downloadisc-dhcp-b68121296a51bee308e4e2804850cd84126ef85e.tar.gz
Add log_perror (used by errwarn.c); copy comments to converted file
-rw-r--r--dhcpxlt.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/dhcpxlt.c b/dhcpxlt.c
index 625b9222..01732615 100644
--- a/dhcpxlt.c
+++ b/dhcpxlt.c
@@ -1,4 +1,4 @@
-/* confpars.c
+/* dhcpxlt.c
Translate old (Beta 4 and previous) dhcpd config files... */
@@ -42,7 +42,7 @@
#ifndef lint
static char copyright[] =
-"$Id: dhcpxlt.c,v 1.1 1996/08/27 09:40:53 mellon Exp $ Copyright (c) 1996 The Internet Software Consortium. All rights reserved.\n";
+"$Id: dhcpxlt.c,v 1.2 1996/08/28 01:34:55 mellon Exp $ Copyright (c) 1996 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
@@ -50,6 +50,7 @@ static char copyright[] =
static TIME parsed_time;
int log_priority;
+int log_perror = 1;
int main (argc, argv, envp)
int argc;
@@ -1277,6 +1278,10 @@ void indent (i)
int k;
if (!i) {
+ if (comment_index) {
+ fwrite (comments, comment_index, 1, stdout);
+ comment_index = 0;
+ }
for (k = 0; k < indent / 8; k++)
putchar ('\t');
for (k = 0; k < indent % 8; k++)