diff options
author | Karl Williamson <khw@cpan.org> | 2020-10-17 06:00:22 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2020-11-02 09:35:45 -0700 |
commit | 4e528812291825e541d225bcf2bffac0cf23be3d (patch) | |
tree | 6edc41e4c77a80fb8a59a69d71da62072e8a5fd6 /util.h | |
parent | 0f60372ed6df95f464ea9e1f7fd11d209caee776 (diff) | |
download | perl-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) \ |