_libga68_u32_cmp is only used in the same translation unit, so make it
static.

libga68/ChangeLog:

        * ga68-unistr.c (_libga68_u32_cmp): Add `static' specifier.
        * ga68.h (_libga68_u32_cmp): Remove prototype.

Signed-off-by: Pietro Monteiro <[email protected]>
---
 libga68/ga68-unistr.c | 2 +-
 libga68/ga68.h        | 3 ---
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/libga68/ga68-unistr.c b/libga68/ga68-unistr.c
index 7f2cb97de70..1b6f46afee3 100644
--- a/libga68/ga68-unistr.c
+++ b/libga68/ga68-unistr.c
@@ -56,7 +56,7 @@
 /* Compare two UCS-4 strings of same lenght, lexicographically.
    Return -1, 0 or 1.  */
 
-int
+static int
 _libga68_u32_cmp (const uint32_t *s1, size_t stride1,
                  const uint32_t *s2, size_t stride2,
                  size_t n)
diff --git a/libga68/ga68.h b/libga68/ga68.h
index 764ea2b3ce7..ed8b71fce79 100644
--- a/libga68/ga68.h
+++ b/libga68/ga68.h
@@ -104,9 +104,6 @@ long long int _libga68_posixlseek (int fd, long long int 
offset, int whence);
 
 /* ga68-unistr.c  */
 
-int _libga68_u32_cmp (const uint32_t *s1, size_t stride1,
-                     const uint32_t *s2, size_t stride2,
-                     size_t n);
 int _libga68_u32_cmp2 (const uint32_t *s1, size_t n1, size_t stride1,
                       const uint32_t *s2, size_t n2, size_t stride2);
 int _libga68_u8_uctomb (uint8_t *s, uint32_t uc, ptrdiff_t n);

base-commit: 2f8283f79bb48f755f4e6f3cb58168078aea7bd2
-- 
2.43.0

Reply via email to