Skip to content

Commit 2568672

Browse files
committed
- We can constify in 5.4+
1 parent f42ea85 commit 2568672

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/dba/dba_db4.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ static void php_dba_db4_errcall_fcn(
4848
/* Bug 51086, Berkeley DB 4.8.26 */
4949
/* This code suppresses a BDB 4.8+ error message, thus keeping PHP test compatibility */
5050
{
51-
char *function = get_active_function_name(TSRMLS_C);
51+
const char *function = get_active_function_name(TSRMLS_C);
5252
if (function && (!strcmp(function,"dba_popen") || !strcmp(function,"dba_open"))
5353
&& (!strncmp(msg, "fop_read_meta", sizeof("fop_read_meta")-1)
5454
|| !strncmp(msg, "BDB0004 fop_read_meta", sizeof("BDB0004 fop_read_meta")-1))) {

0 commit comments

Comments
 (0)