diff options
author | Ted Lemon <source@isc.org> | 2001-04-09 00:36:45 +0000 |
---|---|---|
committer | Ted Lemon <source@isc.org> | 2001-04-09 00:36:45 +0000 |
commit | 80c897c87170790228c51698923968977a8eeb95 (patch) | |
tree | bba1707aa9217fa63a2d03772a6ee7d1152f138a /common/print.c | |
parent | 01aeb18a79121f5caaa7a132ecc2b8c59541ea2b (diff) | |
download | isc-dhcp-80c897c87170790228c51698923968977a8eeb95.tar.gz |
Make things compile if DEBUG is defined.
Diffstat (limited to 'common/print.c')
-rw-r--r-- | common/print.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/common/print.c b/common/print.c index 5c8663ec..74b96d34 100644 --- a/common/print.c +++ b/common/print.c @@ -43,7 +43,7 @@ #ifndef lint static char copyright[] = -"$Id: print.c,v 1.51 2001/03/20 07:26:57 mellon Exp $ Copyright (c) 1995-2001 The Internet Software Consortium. All rights reserved.\n"; +"$Id: print.c,v 1.52 2001/04/09 00:36:45 mellon Exp $ Copyright (c) 1995-2001 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -177,6 +177,7 @@ void print_lease (lease) void dump_packet_option (struct option_cache *oc, struct packet *packet, struct lease *lease, + struct client_state *client, struct option_state *in_options, struct option_state *cfg_options, struct binding_scope **scope, @@ -193,11 +194,11 @@ void dump_packet_option (struct option_cache *oc, name = ""; dot = ""; } - if (evaluate_option_cache (&ds, packet, lease, + if (evaluate_option_cache (&ds, packet, lease, client, in_options, cfg_options, scope, oc, MDL)) { log_debug (" option %s%s%s %s;\n", name, dot, oc -> option -> name, - pretty_print_option (oc -> option -> code, + pretty_print_option (oc -> option, ds.data, ds.len, 1, 1)); data_string_forget (&ds, MDL); } @@ -232,6 +233,7 @@ void dump_packet (tp) for (i = 0; i < tp -> options -> universe_count; i++) { if (tp -> options -> universes [i]) { option_space_foreach (tp, (struct lease *)0, + (struct client_state *)0, (struct option_state *)0, tp -> options, &global_scope, @@ -954,7 +956,7 @@ static unsigned print_subexpression (expr, buf, len) } void print_expression (name, expr) - char *name; + const char *name; struct expression *expr; { char buf [1024]; |