git: ed2f123a217f - main - kdump: For future use made decode_filemode() public

From: Dmitry Chagin <dchagin_at_FreeBSD.org>
Date: Wed, 22 Jun 2022 11:41:11 UTC
The branch main has been updated by dchagin:

URL: https://cgit.FreeBSD.org/src/commit/?id=ed2f123a217ff23800e97dde9801b6732310c57c

commit ed2f123a217ff23800e97dde9801b6732310c57c
Author:     Dmitry Chagin <dchagin@FreeBSD.org>
AuthorDate: 2022-06-22 11:26:50 +0000
Commit:     Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2022-06-22 11:26:50 +0000

    kdump: For future use made decode_filemode() public
    
    MFC after:              2 weeks
---
 usr.bin/kdump/kdump.c | 2 +-
 usr.bin/kdump/kdump.h | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/usr.bin/kdump/kdump.c b/usr.bin/kdump/kdump.c
index 22ac539793fa..4990dea638cf 100644
--- a/usr.bin/kdump/kdump.c
+++ b/usr.bin/kdump/kdump.c
@@ -284,7 +284,7 @@ decode_fileflags(fflags_t value)
 		printf("<invalid>%u", rem);
 }
 
-static void
+void
 decode_filemode(int value)
 {
 	bool invalid;
diff --git a/usr.bin/kdump/kdump.h b/usr.bin/kdump/kdump.h
index 29bdb1dfbbaf..f5b9b85f9779 100644
--- a/usr.bin/kdump/kdump.h
+++ b/usr.bin/kdump/kdump.h
@@ -65,6 +65,7 @@ extern bool decimal, fancy, resolv;
 	c = ',';							\
 } while (0)
 
+void	decode_filemode(int value);
 void	print_integer_arg(const char *(*decoder)(int), int value);
 void	print_integer_arg_valid(const char *(*decoder)(int), int value);
 void	print_mask_arg(bool (*decoder)(FILE *, int, int *), int value);