cvs: php4 /ext/yp yp.c
| From: | Fredrik �hrn | Date: | Mon, 19 Mar 2001 17:01:36 +0000 |
| Subject: | cvs: php4 /ext/yp yp.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-4659@lists.php.net to get a copy of this message | ||
ohrn Mon Mar 19 09:01:36 2001 EDT
Modified files:
/php4/ext/yp yp.c
Log:
Removed redundant initialization.
Index: php4/ext/yp/yp.c
diff -u php4/ext/yp/yp.c:1.16 php4/ext/yp/yp.c:1.17
--- php4/ext/yp/yp.c:1.16 Sun Mar 18 14:16:46 2001
+++ php4/ext/yp/yp.c Mon Mar 19 09:01:35 2001
@@ -16,7 +16,7 @@
| Fredrik Ohrn |
+----------------------------------------------------------------------+
*/
-/* $Id: yp.c,v 1.16 2001/03/18 22:16:46 ohrn Exp $ */
+/* $Id: yp.c,v 1.17 2001/03/19 17:01:35 ohrn Exp $ */
#include "php.h"
#include "ext/standard/info.h"
@@ -349,17 +349,10 @@
}
/* }}} */
-static void php_yp_init_globals(YPLS_D)
-{
- YP(error) = 0;
-}
-
PHP_MINIT_FUNCTION(yp)
{
#ifdef ZTS
- yp_globals_id = ts_allocate_id(sizeof(php_yp_globals), (ts_allocate_ctor) php_yp_init_globals,
NULL);
-#else
- php_yp_init_globals(YPLS_C);
+ yp_globals_id = ts_allocate_id(sizeof(php_yp_globals), NULL, NULL);
#endif
REGISTER_LONG_CONSTANT("YPERR_BADARGS", YPERR_BADARGS, CONST_CS | CONST_PERSISTENT);