Skip to content

Commit 7f45d2c

Browse files
committed
Fix incompatible-pointer-types for pcre2_substring_list_free
This change fixes the following compilation build error for gcc14: tftpd_pcre.c:109:37: error: passing argument 1 of 'pcre2_substring_list_free_8' from incompatible pointer type [-Wincompatible-pointer-types] 109 | pcre2_substring_list_free((const PCRE2_UCHAR **)substrlist); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | const PCRE2_UCHAR8 ** {aka const unsigned char **} In file included from tftpd_pcre.h:24, from tftpd_pcre.c:35: Signed-off-by: Florian Eckert <[email protected]>
1 parent d5c27eb commit 7f45d2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tftpd_pcre.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ tftpd_pcre_self_t *tftpd_pcre_open(char *filename)
106106
logger(LOG_DEBUG,"file: %s line: %d substring: %d value: %s",
107107
filename, linecount, subnum, substrlist[subnum]);
108108
}
109-
pcre2_substring_list_free((const PCRE2_UCHAR **)substrlist);
109+
pcre2_substring_list_free((PCRE2_UCHAR **)substrlist);
110110

111111
if (matches != 3)
112112
{

0 commit comments

Comments
 (0)