From 5b2b45a421e8c680b6381735ad7cf16263ebca43 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Fri, 29 Jun 2018 14:51:36 +0000 Subject: [PATCH] r335795 build fix: make static functions static -Werror,-Wmissing-prototypes makes this an error otherwise. MFC with: 335795 Sponsored by: The FreeBSD Foundation --- sys/netipsec/key_debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netipsec/key_debug.c b/sys/netipsec/key_debug.c index d6fa0eebd3d..3041d636875 100644 --- a/sys/netipsec/key_debug.c +++ b/sys/netipsec/key_debug.c @@ -85,7 +85,7 @@ static void kdebug_sadb_x_natt(struct sadb_ext *); /* NOTE: host byte order */ -const char* +static const char* kdebug_sadb_type(uint8_t type) { #define SADB_NAME(n) case SADB_ ## n: return (#n) @@ -120,7 +120,7 @@ kdebug_sadb_type(uint8_t type) #undef SADB_NAME } -const char* +static const char* kdebug_sadb_exttype(uint16_t type) { #define EXT_NAME(n) case SADB_EXT_ ## n: return (#n)