[Pcre-svn] [1149] code/trunk/maint/utf8.c: Avoid compiler wa…

Páxina inicial
Borrar esta mensaxe
Autor: Subversion repository
Data:  
Para: pcre-svn
Asunto: [Pcre-svn] [1149] code/trunk/maint/utf8.c: Avoid compiler warnings for this maintenance test program.
Revision: 1149
          http://www.exim.org/viewvc/pcre2?view=rev&revision=1149
Author:   ph10
Date:     2019-07-29 17:10:31 +0100 (Mon, 29 Jul 2019)
Log Message:
-----------
Avoid compiler warnings for this maintenance test program.


Modified Paths:
--------------
    code/trunk/maint/utf8.c


Modified: code/trunk/maint/utf8.c
===================================================================
--- code/trunk/maint/utf8.c    2019-07-29 16:03:25 UTC (rev 1148)
+++ code/trunk/maint/utf8.c    2019-07-29 16:10:31 UTC (rev 1149)
@@ -28,6 +28,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <ctype.h>
+#include <string.h>


/* The valid ranges for UTF-8 characters are:

@@ -172,7 +173,7 @@

 for (; i < argc; i++)
   {
-  unsigned char *x = argv[i];
+  char *x = argv[i];
   if (strncmp(x, "0x", 2) == 0)
     {
     int j;