From 791ec582e9dadb1dbac6213f61142a880505b026 Mon Sep 17 00:00:00 2001 From: claudio Date: Tue, 19 Jul 2022 16:27:59 +0000 Subject: [PATCH] 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@ --- regress/usr.sbin/bgpd/unittests/rde_decide_test.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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 @@ -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) +{ +} -- 2.20.1