This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
handy.h: Add void * casts to memEQ, memNE
[perl5.git] / mathoms.c
index 59d8aea..8b003d3 100644 (file)
--- a/mathoms.c
+++ b/mathoms.c
@@ -518,7 +518,7 @@ int
 Perl_fprintf_nocontext(PerlIO *stream, const char *format, ...)
 {
     int ret = 0;
-    va_list(arglist);
+    va_list arglist;
 
     /* Easier to special case this here than in embed.pl. (Look at what it
        generates for proto.h) */
@@ -536,7 +536,7 @@ int
 Perl_printf_nocontext(const char *format, ...)
 {
     dTHX;
-    va_list(arglist);
+    va_list arglist;
     int ret = 0;
 
 #ifdef PERL_IMPLICIT_CONTEXT
@@ -1662,7 +1662,7 @@ Perl_is_utf8_char(const U8 *s)
 
     /* Assumes we have enough space, which is why this is deprecated.  But the
      * strnlen() makes it safe for the common case of NUL-terminated strings */
-    return isUTF8_CHAR(s, s + strnlen((char *) s, UTF8SKIP(s)));
+    return isUTF8_CHAR(s, s + my_strnlen((char *) s, UTF8SKIP(s)));
 }
 
 /*