summaryrefslogtreecommitdiff
path: root/src/pcre2_dftables.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pcre2_dftables.c')
-rw-r--r--src/pcre2_dftables.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pcre2_dftables.c b/src/pcre2_dftables.c
index 1c059e2..71b90ce 100644
--- a/src/pcre2_dftables.c
+++ b/src/pcre2_dftables.c
@@ -63,7 +63,7 @@ given, they are written in binary. */
#include "pcre2_maketables.c"
-static char *classlist[] =
+static const char *classlist[] =
{
"space", "xdigit", "digit", "upper", "lower",
"word", "graph", "print", "punct", "cntrl"
@@ -97,7 +97,7 @@ FILE *f;
int i;
int nclass = 0;
BOOL binary = FALSE;
-char *env = "C";
+char *env = (char *)"C";
const unsigned char *tables;
const unsigned char *base_of_tables;
@@ -105,7 +105,7 @@ const unsigned char *base_of_tables;
for (i = 1; i < argc; i++)
{
- unsigned char *arg = (unsigned char *)argv[i];
+ char *arg = argv[i];
if (*arg != '-') break;
if (strcmp(arg, "-help") == 0 || strcmp(arg, "--help") == 0)