diff options
author | Ted Lemon <source@isc.org> | 1996-08-28 01:34:55 +0000 |
---|---|---|
committer | Ted Lemon <source@isc.org> | 1996-08-28 01:34:55 +0000 |
commit | b68121296a51bee308e4e2804850cd84126ef85e (patch) | |
tree | 02bcd557b5aa86e7ec083d5a0e9103daaa3a843a | |
parent | 6aa71eebb9e088a57a5c4f3a015f303a8ea2b637 (diff) | |
download | isc-dhcp-b68121296a51bee308e4e2804850cd84126ef85e.tar.gz |
Add log_perror (used by errwarn.c); copy comments to converted file
-rw-r--r-- | dhcpxlt.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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++) |