diff options
author | Hakan Olsson <ho@cvs.openbsd.org> | 2003-10-14 14:29:16 +0000 |
---|---|---|
committer | Hakan Olsson <ho@cvs.openbsd.org> | 2003-10-14 14:29:16 +0000 |
commit | ba7ec25970a73fac88e8af6f1da6ed719e3fd12f (patch) | |
tree | 107600153d81a5344a22372d986d66df8d30d240 /sbin/isakmpd/exchange.c | |
parent | 3f9f9669a0d7606e0a49e0c067baa9b93f3a2311 (diff) |
constant_lookup() to constant_name() cleanup. markus@ ok.
Diffstat (limited to 'sbin/isakmpd/exchange.c')
-rw-r--r-- | sbin/isakmpd/exchange.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/sbin/isakmpd/exchange.c b/sbin/isakmpd/exchange.c index e0a025e3435..52f652380bc 100644 --- a/sbin/isakmpd/exchange.c +++ b/sbin/isakmpd/exchange.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exchange.c,v 1.85 2003/09/25 14:15:15 cloder Exp $ */ +/* $OpenBSD: exchange.c,v 1.86 2003/10/14 14:29:15 ho Exp $ */ /* $EOM: exchange.c,v 1.143 2000/12/04 00:02:25 angelos Exp $ */ /* @@ -1018,7 +1018,7 @@ exchange_setup_p1 (struct message *msg, u_int32_t doi) struct conf_list *flags; struct conf_list_node *flag; #endif - char *name = 0, *policy = 0, *str, *tag; + char *name = 0, *policy = 0, *str; u_int32_t want_doi; u_int8_t type; @@ -1098,12 +1098,11 @@ exchange_setup_p1 (struct message *msg, u_int32_t doi) } if (type != GET_ISAKMP_HDR_EXCH_TYPE (msg->iov[0].iov_base)) { - tag = constant_lookup (isakmp_exch_cst, - GET_ISAKMP_HDR_EXCH_TYPE (msg->iov[0] - .iov_base)); log_print ("exchange_setup_p1: expected exchange type %s got %s", - str, tag ? tag : "<unknown>"); - + str, + constant_name (isakmp_exch_cst, + GET_ISAKMP_HDR_EXCH_TYPE (msg->iov[0] + .iov_base))); return 0; } } |