From 2e690ac4b5faea66899b5da4e6649e8d610af86d Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Thu, 1 Jul 1999 05:47:06 +0000 Subject: [PATCH] some additional consts --- ext/standard/php3_var.h | 2 +- ext/standard/var.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/standard/php3_var.h b/ext/standard/php3_var.h index 42cdac3d3e..781992f6df 100644 --- a/ext/standard/php3_var.h +++ b/ext/standard/php3_var.h @@ -37,6 +37,6 @@ PHP_FUNCTION(unserialize); void php3api_var_dump(pval **struc, int level); void php3api_var_serialize(pval *buf, pval **struc); -int php3api_var_unserialize(pval **rval, char **p, char *max); +int php3api_var_unserialize(pval **rval, const char **p, const char *max); #endif /* _PHPVAR_H */ diff --git a/ext/standard/var.c b/ext/standard/var.c index 53d4b8b0f0..09d6e837f3 100644 --- a/ext/standard/var.c +++ b/ext/standard/var.c @@ -288,9 +288,9 @@ void php3api_var_serialize(pval *buf, pval **struc) /* }}} */ /* {{{ php3api_var_dump */ -int php3api_var_unserialize(pval **rval, char **p, char *max) +int php3api_var_unserialize(pval **rval, const char **p, const char *max) { - char *q; + const char *q; char *str; int i; @@ -482,7 +482,7 @@ PHP_FUNCTION(unserialize) WRONG_PARAM_COUNT; } if (buf->type == IS_STRING) { - char *p = buf->value.str.val; + const char *p = buf->value.str.val; if (!php3api_var_unserialize(&return_value, &p, p + buf->value.str.len)) { RETURN_FALSE; } -- 2.40.0