Skip to content

Commit 252e252

Browse files
author
foobar
committed
killed some compile warnings
1 parent 474da88 commit 252e252

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

ext/yp/yp.c

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ PHP_FUNCTION(yp_get_default_domain)
7676
{
7777
char *outdomain;
7878

79-
if(YP(error) = yp_get_default_domain(&outdomain)) {
79+
if((YP(error) = yp_get_default_domain(&outdomain))) {
8080
php_error(E_WARNING, yperr_string (YP(error)));
8181
RETURN_FALSE;
8282
}
@@ -103,7 +103,7 @@ PHP_FUNCTION(yp_order)
103103
convert_to_string_ex(domain);
104104
convert_to_string_ex(map);
105105

106-
if(YP(error) = yp_order(Z_STRVAL_PP (domain), Z_STRVAL_PP (map), &outval)) {
106+
if((YP(error) = yp_order(Z_STRVAL_PP (domain), Z_STRVAL_PP (map), &outval))) {
107107
php_error(E_WARNING, yperr_string (YP(error)));
108108
RETURN_FALSE;
109109
}
@@ -126,7 +126,7 @@ PHP_FUNCTION(yp_master)
126126
convert_to_string_ex(domain);
127127
convert_to_string_ex(map);
128128

129-
if(YP(error) = yp_master(Z_STRVAL_PP (domain), Z_STRVAL_PP (map), &outname)) {
129+
if((YP(error) = yp_master(Z_STRVAL_PP (domain), Z_STRVAL_PP (map), &outname))) {
130130
php_error(E_WARNING, yperr_string (YP(error)));
131131
RETURN_FALSE;
132132
}
@@ -151,7 +151,7 @@ PHP_FUNCTION(yp_match)
151151
convert_to_string_ex(map);
152152
convert_to_string_ex(key);
153153

154-
if(YP(error) = yp_match(Z_STRVAL_PP (domain), Z_STRVAL_PP (map), Z_STRVAL_PP (key), Z_STRLEN_PP (key), &outval, &outvallen)) {
154+
if((YP(error) = yp_match(Z_STRVAL_PP (domain), Z_STRVAL_PP (map), Z_STRVAL_PP (key), Z_STRLEN_PP (key), &outval, &outvallen))) {
155155
php_error(E_WARNING, yperr_string (YP(error)));
156156
RETURN_FALSE;
157157
}
@@ -175,7 +175,7 @@ PHP_FUNCTION(yp_first)
175175
convert_to_string_ex(domain);
176176
convert_to_string_ex(map);
177177

178-
if(YP(error) = yp_first(Z_STRVAL_PP (domain), Z_STRVAL_PP (map), &outkey, &outkeylen, &outval, &outvallen)) {
178+
if((YP(error) = yp_first(Z_STRVAL_PP (domain), Z_STRVAL_PP (map), &outkey, &outkeylen, &outval, &outvallen))) {
179179
php_error(E_WARNING, yperr_string (YP(error)));
180180
RETURN_FALSE;
181181
}
@@ -204,7 +204,7 @@ PHP_FUNCTION(yp_next)
204204
convert_to_string_ex(map);
205205
convert_to_string_ex(key);
206206

207-
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)) {
207+
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))) {
208208
php_error(E_WARNING, yperr_string (YP(error)));
209209
RETURN_FALSE;
210210
}
@@ -392,6 +392,8 @@ PHP_MINIT_FUNCTION(yp)
392392
PHP_RINIT_FUNCTION(yp)
393393
{
394394
YP(error) = 0;
395+
396+
return SUCCESS;
395397
}
396398

397399
PHP_MINFO_FUNCTION(yp)

0 commit comments

Comments
 (0)