cvs: php4 /ext/yp yp.c
| From: | Jani Taskinen | Date: | Tue, 31 Jul 2001 23:49:07 +0000 |
| Subject: | cvs: php4 /ext/yp yp.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-6452@lists.php.net to get a copy of this message | ||
sniper Tue Jul 31 19:49:07 2001 EDT
Modified files:
/php4/ext/yp yp.c
Log:
killed some compile warnings
Index: php4/ext/yp/yp.c
diff -u php4/ext/yp/yp.c:1.26 php4/ext/yp/yp.c:1.27
--- php4/ext/yp/yp.c:1.26 Mon Jul 30 04:24:39 2001
+++ php4/ext/yp/yp.c Tue Jul 31 19:49:07 2001
@@ -16,7 +16,7 @@
| Fredrik Ohrn |
+----------------------------------------------------------------------+
*/
-/* $Id: yp.c,v 1.26 2001/07/30 08:24:39 zeev Exp $ */
+/* $Id: yp.c,v 1.27 2001/07/31 23:49:07 sniper Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -76,7 +76,7 @@
{
char *outdomain;
- if(YP(error) = yp_get_default_domain(&outdomain)) {
+ if((YP(error) = yp_get_default_domain(&outdomain))) {
php_error(E_WARNING, yperr_string (YP(error)));
RETURN_FALSE;
}
@@ -103,7 +103,7 @@
convert_to_string_ex(domain);
convert_to_string_ex(map);
- if(YP(error) = yp_order(Z_STRVAL_PP (domain), Z_STRVAL_PP (map), &outval)) {
+ if((YP(error) = yp_order(Z_STRVAL_PP (domain), Z_STRVAL_PP (map), &outval))) {
php_error(E_WARNING, yperr_string (YP(error)));
RETURN_FALSE;
}
@@ -126,7 +126,7 @@
convert_to_string_ex(domain);
convert_to_string_ex(map);
- if(YP(error) = yp_master(Z_STRVAL_PP (domain), Z_STRVAL_PP (map), &outname)) {
+ if((YP(error) = yp_master(Z_STRVAL_PP (domain), Z_STRVAL_PP (map), &outname))) {
php_error(E_WARNING, yperr_string (YP(error)));
RETURN_FALSE;
}
@@ -151,7 +151,7 @@
convert_to_string_ex(map);
convert_to_string_ex(key);
- if(YP(error) = yp_match(Z_STRVAL_PP (domain), Z_STRVAL_PP (map), Z_STRVAL_PP (key), Z_STRLEN_PP
(key), &outval, &outvallen)) {
+ if((YP(error) = yp_match(Z_STRVAL_PP (domain), Z_STRVAL_PP (map), Z_STRVAL_PP (key), Z_STRLEN_PP
(key), &outval, &outvallen))) {
php_error(E_WARNING, yperr_string (YP(error)));
RETURN_FALSE;
}
@@ -175,7 +175,7 @@
convert_to_string_ex(domain);
convert_to_string_ex(map);
- if(YP(error) = yp_first(Z_STRVAL_PP (domain), Z_STRVAL_PP (map), &outkey, &outkeylen,
&outval, &outvallen)) {
+ if((YP(error) = yp_first(Z_STRVAL_PP (domain), Z_STRVAL_PP (map), &outkey, &outkeylen,
&outval, &outvallen))) {
php_error(E_WARNING, yperr_string (YP(error)));
RETURN_FALSE;
}
@@ -204,7 +204,7 @@
convert_to_string_ex(map);
convert_to_string_ex(key);
- if(YP(error) = yp_next(Z_STRVAL_PP (domain), Z_STRVAL_PP (map), Z_STRVAL_PP (key), Z_STRLEN_PP
(key), &outkey, &outkeylen, &outval, &outvallen)) {
+ if((YP(error) = yp_next(Z_STRVAL_PP (domain), Z_STRVAL_PP (map), Z_STRVAL_PP (key), Z_STRLEN_PP
(key), &outkey, &outkeylen, &outval, &outvallen))) {
php_error(E_WARNING, yperr_string (YP(error)));
RETURN_FALSE;
}
@@ -392,6 +392,8 @@
PHP_RINIT_FUNCTION(yp)
{
YP(error) = 0;
+
+ return SUCCESS;
}
PHP_MINFO_FUNCTION(yp)