From 69ed661a488c0e02bf5fee3dc21e6a31a99a8d85 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 17 Oct 2015 00:58:39 +0200 Subject: fix errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/string/strchr.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/string/strchr.c') diff --git a/src/string/strchr.c b/src/string/strchr.c index bf79a0b..06f3ee6 100644 --- a/src/string/strchr.c +++ b/src/string/strchr.c @@ -31,7 +31,7 @@ * @return Pointer to the first occurrence of `c`, * `NULL` if none were found. */ -void* memchr(const void* segment, int c, size_t size) +void* (memchr)(const void* segment, int c, size_t size) { char* s = segment; while (size--) @@ -51,7 +51,7 @@ void* memchr(const void* segment, int c, size_t size) * @param c The sought after character. * @return Pointer to the first occurrence of `c`. */ -void* rawmemchr(const void* segment, int c) +void* (rawmemchr)(const void* segment, int c) { char* s = segment; for (;;) @@ -73,7 +73,7 @@ void* rawmemchr(const void* segment, int c) * @return Pointer to the last occurrence of `c`, * `NULL` if none were found. */ -void* memrchr(const void* segment, int c, size_t size) +void* (memrchr)(const void* segment, int c, size_t size) { char* s = segment; while (size--) @@ -96,7 +96,7 @@ void* memrchr(const void* segment, int c, size_t size) * @return Pointer to the first occurrence of `c`, * `NULL` if none were found. */ -char* strchr(const char* string, int c) +char* (strchr)(const char* string, int c) { for (;;) if (*string == c) @@ -120,7 +120,7 @@ char* strchr(const char* string, int c) * Pointer to the terminating NUL character * if none were found. */ -char* strchrnul(const char* string, int c) +char* (strchrnul)(const char* string, int c) { for (;; string++) if (*string == c) @@ -144,7 +144,7 @@ char* strchrnul(const char* string, int c) * @return Pointer to the last occurrence of `c`, * `NULL` if none were found. */ -char* strrchr(const char* string, int c) +char* (strrchr)(const char* string, int c) { char* r = NULL; for (;;) -- cgit v1.2.3-70-g09d2