From aa74276b25bbf0b2b2abc8401984dd3fd8bc316e Mon Sep 17 00:00:00 2001 From: John Reiser Date: Sun, 30 Aug 2009 19:44:45 -0700 Subject: [PATCH] gcc-4.4.1 is more strict about 'const' --- src/pefile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pefile.cpp b/src/pefile.cpp index ed9d0300..fcbed80e 100644 --- a/src/pefile.cpp +++ b/src/pefile.cpp @@ -1343,8 +1343,8 @@ static bool match(unsigned itype, const unsigned char *ntype, // FIXME this comparison is not too exact while (1) { - char *delim1 = strchr(keep, '/'); - char *delim2 = strchr(keep, ','); + char const *delim1 = strchr(keep, '/'); + char const *delim2 = strchr(keep, ','); if (helper::match(itype, ntype, keep)) { if (!delim1)