diff options
author | Antony Dovgal <tony2001@php.net> | 2005-10-20 16:51:03 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2005-10-20 16:51:03 +0000 |
commit | 159bae3d995f7a9388ede913e66ecd3b04783d03 (patch) | |
tree | 5c45f0d31f19dd18604b32085ba416dde8d8a010 | |
parent | 5fdeb391f358bf8038441613b02bc73fc68875ab (diff) | |
download | php-git-159bae3d995f7a9388ede913e66ecd3b04783d03.tar.gz |
MFH: use constants instead of their values
-rw-r--r-- | ext/iconv/iconv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/iconv/iconv.c b/ext/iconv/iconv.c index 5b8b60d175..e3f9ef83c4 100644 --- a/ext/iconv/iconv.c +++ b/ext/iconv/iconv.c @@ -1242,7 +1242,7 @@ static php_iconv_err_t _php_iconv_mime_decode(smart_str *pretval, const char *st const char *encoded_word = NULL; const char *spaces = NULL; - php_iconv_enc_scheme_t enc_scheme = 0; + php_iconv_enc_scheme_t enc_scheme = PHP_ICONV_ENC_SCHEME_BASE64; if (next_pos != NULL) { *next_pos = NULL; @@ -1701,7 +1701,7 @@ static php_iconv_err_t _php_iconv_mime_decode(smart_str *pretval, const char *st if (scan_stat == 1) { _php_iconv_appendc(pretval, '=', cd_pl); } - err = 0; + err = PHP_ICONV_ERR_SUCCESS; } else { err = PHP_ICONV_ERR_MALFORMED; goto out; @@ -2076,7 +2076,7 @@ PHP_FUNCTION(iconv_mime_decode_headers) int charset_len; long mode = 0; - php_iconv_err_t err = 0; + php_iconv_err_t err = PHP_ICONV_ERR_SUCCESS; charset = ICONVG(internal_encoding); |