diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2022-07-19 16:28:00 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2022-07-19 16:28:00 +0000 |
commit | 4930df9e12e9adcab769b9287e16529351ef1898 (patch) | |
tree | 3c0c819c432d4b46964f3829c7826f74a7732380 | |
parent | 6f72b625227e2bbfb8fd88526dafba6a27b9c34f (diff) |
Add log_debug() and pt_getaddr() dummy functions because prefix_set_dmetric()
depends on them. Not ideal but I hope to fix the real issue in the near future.
Noticed by anton@
-rw-r--r-- | regress/usr.sbin/bgpd/unittests/rde_decide_test.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/regress/usr.sbin/bgpd/unittests/rde_decide_test.c b/regress/usr.sbin/bgpd/unittests/rde_decide_test.c index c3e23e747c5..90865199414 100644 --- a/regress/usr.sbin/bgpd/unittests/rde_decide_test.c +++ b/regress/usr.sbin/bgpd/unittests/rde_decide_test.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde_decide_test.c,v 1.10 2022/07/07 12:20:50 claudio Exp $ */ +/* $OpenBSD: rde_decide_test.c,v 1.11 2022/07/19 16:27:59 claudio Exp $ */ /* * Copyright (c) 2020 Claudio Jeker <claudio@openbsd.org> @@ -400,3 +400,16 @@ log_warnx(const char *emsg, ...) va_end(ap); } +void +log_debug(const char *emsg, ...) +{ + va_list ap; + va_start(ap, emsg); + vwarnx(emsg, ap); + va_end(ap); +} + +void +pt_getaddr(struct pt_entry *pte, struct bgpd_addr *addr) +{ +} |