From 5c969a7e84c554d9a4833e3ccdbb74476c131100 Mon Sep 17 00:00:00 2001 From: bluhm Date: Sat, 11 Nov 2023 12:17:50 +0000 Subject: [PATCH] Remove unused parameter dst from art_get(). OK mvs@ --- sys/net/art.c | 4 ++-- sys/net/art.h | 4 ++-- sys/net/rtable.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sys/net/art.c b/sys/net/art.c index 900de04846c..379767ba2eb 100644 --- a/sys/net/art.c +++ b/sys/net/art.c @@ -1,4 +1,4 @@ -/* $OpenBSD: art.c,v 1.30 2023/11/10 20:05:22 bluhm Exp $ */ +/* $OpenBSD: art.c,v 1.31 2023/11/11 12:17:50 bluhm Exp $ */ /* * Copyright (c) 2015 Martin Pieuchot @@ -889,7 +889,7 @@ moveup: } struct art_node * -art_get(void *dst, uint8_t plen) +art_get(uint8_t plen) { struct art_node *an; diff --git a/sys/net/art.h b/sys/net/art.h index e03d0f61498..32c33aaac56 100644 --- a/sys/net/art.h +++ b/sys/net/art.h @@ -1,4 +1,4 @@ -/* $OpenBSD: art.h,v 1.24 2023/11/10 20:05:22 bluhm Exp $ */ +/* $OpenBSD: art.h,v 1.25 2023/11/11 12:17:50 bluhm Exp $ */ /* * Copyright (c) 2015 Martin Pieuchot @@ -106,7 +106,7 @@ struct art_node *art_lookup(struct art_root *, const void *, int, int art_walk(struct art_root *, int (*)(struct art_node *, void *), void *); -struct art_node *art_get(void *, uint8_t); +struct art_node *art_get(uint8_t); void art_put(struct art_node *); #endif /* _NET_ART_H_ */ diff --git a/sys/net/rtable.c b/sys/net/rtable.c index 676563b6e3d..f2519eb6dbc 100644 --- a/sys/net/rtable.c +++ b/sys/net/rtable.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtable.c,v 1.83 2023/11/10 20:05:22 bluhm Exp $ */ +/* $OpenBSD: rtable.c,v 1.84 2023/11/11 12:17:50 bluhm Exp $ */ /* * Copyright (c) 2014-2016 Martin Pieuchot @@ -591,7 +591,7 @@ rtable_insert(unsigned int rtableid, struct sockaddr *dst, } } - an = art_get(dst, plen); + an = art_get(plen); if (an == NULL) { error = ENOBUFS; goto leave; -- 2.20.1