From 14b57791d8f2fca57410e73c9ff3b91673ee2646 Mon Sep 17 00:00:00 2001 From: Peter Colberg Date: Fri, 30 Oct 2015 15:24:34 -0400 Subject: Fix missing static declarations for internal functions --- test/charwidth.c | 2 +- test/iterate.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/charwidth.c b/test/charwidth.c index 986e7ca..330f18e 100644 --- a/test/charwidth.c +++ b/test/charwidth.c @@ -2,7 +2,7 @@ #include #include -int my_isprint(int c) { +static int my_isprint(int c) { int cat = utf8proc_get_property(c)->category; return (UTF8PROC_CATEGORY_LU <= cat && cat <= UTF8PROC_CATEGORY_ZS) || (c == 0x0601 || c == 0x0602 || c == 0x0603 || c == 0x06dd); diff --git a/test/iterate.c b/test/iterate.c index cd68a52..30b307d 100644 --- a/test/iterate.c +++ b/test/iterate.c @@ -8,7 +8,7 @@ static int error; #define CHECKVALID(pos, val, len) buf[pos] = val; testbytes(buf,len,len,__LINE__) #define CHECKINVALID(pos, val, len) buf[pos] = val; testbytes(buf,len,UTF8PROC_ERROR_INVALIDUTF8,__LINE__) -void testbytes(unsigned char *buf, int len, utf8proc_ssize_t retval, int line) +static void testbytes(unsigned char *buf, int len, utf8proc_ssize_t retval, int line) { utf8proc_int32_t out[16]; utf8proc_ssize_t ret; -- cgit v1.2.3