cvs: php4 /ext/yp yp.c

From: Date: Sat, 07 Apr 2001 18:22:27 +0000
Subject: cvs: php4 /ext/yp yp.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-5027@lists.php.net to get a copy of this message
jon Sat Apr 7 11:22:27 2001 EDT Modified files: /php4/ext/yp yp.c Log: Fix compilation (strict compilers require constant initializers). Index: php4/ext/yp/yp.c diff -u php4/ext/yp/yp.c:1.19 php4/ext/yp/yp.c:1.20 --- php4/ext/yp/yp.c:1.19 Tue Mar 20 12:04:41 2001 +++ php4/ext/yp/yp.c Sat Apr 7 11:22:26 2001 @@ -16,7 +16,7 @@ | Fredrik Ohrn | +----------------------------------------------------------------------+ */ -/* $Id: yp.c,v 1.19 2001/03/20 20:04:41 ohrn Exp $ */ +/* $Id: yp.c,v 1.20 2001/04/07 18:22:26 jon Exp $ */ #include "php.h" #include "ext/standard/info.h" @@ -215,9 +215,13 @@ { int r; zval *status, *key, *value; - zval **args [3] = { &status, &key, &value }; + zval **args [3]; zval *retval; CLS_FETCH(); + + args[0] = &status; + args[1] = &key; + args[2] = &value; MAKE_STD_ZVAL (status); ZVAL_LONG (status, ypprot_err (instatus));

« previous php.cvs (#5027) next »