gbranden pushed a commit to branch master
in repository groff.

commit 8f62ff99a268166a4618c072252ca7b8dfabb970
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon May 25 02:57:54 2026 -0500

    [tfmtodit]: Fix code style nits. (5/6)
    
    * src/utils/tfmtodit/tfmtodit.cpp (read2, read4, read_map): Define
      functions as `static`; external linkage is not required.
---
 ChangeLog                       | 6 ++++++
 src/utils/tfmtodit/tfmtodit.cpp | 6 +++---
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 57ddae1f9..3c6fddd06 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2026-05-25  G. Branden Robinson <[email protected]>
+
+       * src/utils/tfmtodit/tfmtodit.cpp (read2, read4, read_map):
+       Fix code style nit.  Define functions as `static`; external
+       linkage is not required.
+
 2026-05-25  G. Branden Robinson <[email protected]>
 
        * src/utils/tfmtodit/tfmtodit.cpp (usage): Relocate function
diff --git a/src/utils/tfmtodit/tfmtodit.cpp b/src/utils/tfmtodit/tfmtodit.cpp
index b5a976e8d..a246d6d2d 100644
--- a/src/utils/tfmtodit/tfmtodit.cpp
+++ b/src/utils/tfmtodit/tfmtodit.cpp
@@ -266,7 +266,7 @@ tfm::~tfm()
   delete[] param;
 }
 
-int read2(unsigned char *&s)
+static int read2(unsigned char *&s)
 {
   int n;
   n = *s++ << 8;
@@ -274,7 +274,7 @@ int read2(unsigned char *&s)
   return n;
 }
 
-int read4(unsigned char *&s)
+static int read4(unsigned char *&s)
 {
   int n;
   n = *s++ << 24;
@@ -612,7 +612,7 @@ char_list::char_list(const char *s, char_list *p) : 
ch(strsave(s)),
 }
 
 
-bool read_map(const char *file, char_list **table)
+static bool read_map(const char *file, char_list **table)
 {
   errno = 0;
   FILE *fp = fopen(file, "r");

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to