summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-10-17 06:00:22 -0600
committerKarl Williamson <khw@cpan.org>2020-11-02 09:35:45 -0700
commit4e528812291825e541d225bcf2bffac0cf23be3d (patch)
tree6edc41e4c77a80fb8a59a69d71da62072e8a5fd6 /util.h
parent0f60372ed6df95f464ea9e1f7fd11d209caee776 (diff)
downloadperl-4e528812291825e541d225bcf2bffac0cf23be3d.tar.gz
Cast parameters to instr, strstr
This code isn't apparently compiled on modern platforms, as when I tried to force them to compile, I had to do this.
Diffstat (limited to 'util.h')
-rw-r--r--util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.h b/util.h
index 7d06feaa03..df0c7ad348 100644
--- a/util.h
+++ b/util.h
@@ -248,7 +248,7 @@ returning NULL if not found. The terminating NUL bytes are not compared.
*/
-#define instr(haystack, needle) strstr(haystack, needle)
+#define instr(haystack, needle) strstr((char *) haystack, (char *) needle)
#ifdef HAS_MEMMEM
# define ninstr(big, bigend, little, lend) \