From 134092412ad6e1ac174d43e15df494c69a68f2fc Mon Sep 17 00:00:00 2001 From: claudio Date: Thu, 9 Aug 2018 12:21:03 +0000 Subject: [PATCH] Make two very internal functions static. They are used to merge an AS_PATH with a AS4_PATH and are therefor fairly special. --- usr.sbin/bgpd/rde_attr.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/usr.sbin/bgpd/rde_attr.c b/usr.sbin/bgpd/rde_attr.c index a5291c2a390..54f8b82e4bf 100644 --- a/usr.sbin/bgpd/rde_attr.c +++ b/usr.sbin/bgpd/rde_attr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde_attr.c,v 1.107 2018/08/08 14:29:05 claudio Exp $ */ +/* $OpenBSD: rde_attr.c,v 1.108 2018/08/09 12:21:03 claudio Exp $ */ /* * Copyright (c) 2004 Claudio Jeker @@ -441,8 +441,8 @@ attr_put(struct attr *a) /* aspath specific functions */ -u_int16_t aspath_countlength(struct aspath *, u_int16_t, int); -void aspath_countcopy(struct aspath *, u_int16_t, u_int8_t *, +static u_int16_t aspath_countlength(struct aspath *, u_int16_t, int); +static void aspath_countcopy(struct aspath *, u_int16_t, u_int8_t *, u_int16_t, int); struct aspath *aspath_lookup(const void *, u_int16_t); @@ -692,7 +692,7 @@ aspath_count(const void *data, u_int16_t len) return (cnt); } -u_int16_t +static u_int16_t aspath_countlength(struct aspath *aspath, u_int16_t cnt, int headcnt) { const u_int8_t *seg; @@ -728,7 +728,7 @@ aspath_countlength(struct aspath *aspath, u_int16_t cnt, int headcnt) return (clen); } -void +static void aspath_countcopy(struct aspath *aspath, u_int16_t cnt, u_int8_t *buf, u_int16_t size, int headcnt) { -- 2.20.1