diff options
author | Yasuo Ohgaki <yohgaki@php.net> | 2016-01-18 13:27:52 +0900 |
---|---|---|
committer | Yasuo Ohgaki <yohgaki@php.net> | 2016-01-18 13:33:47 +0900 |
commit | ee1dd4949a77f95de4063f8feb2c10f67edcc341 (patch) | |
tree | 400c10e0efe2299eccec55e64a94839213a774ca | |
parent | f9c595f3c07c4a8671fe751d97cd58cc4c2d337c (diff) | |
download | php-git-ee1dd4949a77f95de4063f8feb2c10f67edcc341.tar.gz |
Use SUCCESS/FAILURE
-rw-r--r-- | ext/session/session.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/session/session.c b/ext/session/session.c index cbcd20d63a..c3ea950908 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -1119,7 +1119,7 @@ static ps_serializer ps_serializers[MAX_SERIALIZERS + 1] = { PHPAPI int php_session_register_serializer(const char *name, int (*encode)(PS_SERIALIZER_ENCODE_ARGS), int (*decode)(PS_SERIALIZER_DECODE_ARGS)) /* {{{ */ { - int ret = -1; + int ret = FAILURE; int i; for (i = 0; i < MAX_SERIALIZERS; i++) { @@ -1128,7 +1128,7 @@ PHPAPI int php_session_register_serializer(const char *name, int (*encode)(PS_SE ps_serializers[i].encode = encode; ps_serializers[i].decode = decode; ps_serializers[i + 1].name = NULL; - ret = 0; + ret = SUCCESS; break; } } @@ -1150,13 +1150,13 @@ static ps_module *ps_modules[MAX_MODULES + 1] = { PHPAPI int php_session_register_module(ps_module *ptr) /* {{{ */ { - int ret = -1; + int ret = FAILURE; int i; for (i = 0; i < MAX_MODULES; i++) { if (!ps_modules[i]) { ps_modules[i] = ptr; - ret = 0; + ret = SUCCESS; break; } } |