From: claudio Date: Thu, 16 Jun 2022 15:36:36 +0000 (+0000) Subject: Neither inet4allone nor inet6allone need global scope. Make them static. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a656415f7e040b982c06247659a4617de8045c04;p=openbsd Neither inet4allone nor inet6allone need global scope. Make them static. Noticed by tb@ --- diff --git a/usr.sbin/bgpd/kroute.c b/usr.sbin/bgpd/kroute.c index 489981c66b2..f5bfb841adc 100644 --- a/usr.sbin/bgpd/kroute.c +++ b/usr.sbin/bgpd/kroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kroute.c,v 1.258 2022/06/16 15:33:05 claudio Exp $ */ +/* $OpenBSD: kroute.c,v 1.259 2022/06/16 15:36:36 claudio Exp $ */ /* * Copyright (c) 2022 Claudio Jeker @@ -210,8 +210,8 @@ RB_GENERATE(kif_tree, kif_node, entry, kif_compare) #define KT2KNT(x) (&(ktable_get((x)->nhtableid)->knt)) -const struct in_addr inet4allone = { INADDR_BROADCAST }; -const struct in6_addr inet6allone = {{{ 0xff, 0xff, 0xff, 0xff, +static const struct in_addr inet4allone = { INADDR_BROADCAST }; +static const struct in6_addr inet6allone = {{{ 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }}};