musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/string/strncmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/string/strncmp.c')
-rw-r--r--src/string/strncmp.c 2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string/strncmp.c b/src/string/strncmp.c
index 52ba0323..e228843f 100644
--- a/src/string/strncmp.c
+++ b/src/string/strncmp.c
@@ -2,7 +2,7 @@
int strncmp(const char *_l, const char *_r, size_t n)
{
- const unsigned char *l=_l, *r=_r;
+ const unsigned char *l=(void *)_l, *r=(void *)_r;
if (!n--) return 0;
for (; *l && *r && n && *l == *r ; l++, r++, n--);
return *l - *r;
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月01日 20:25:47 +0000

AltStyle によって変換されたページ (->オリジナル) /