diff options
| author | Rasmus Lerdorf <rasmus@php.net> | 1999-12-05 13:41:42 +0000 | 
|---|---|---|
| committer | Rasmus Lerdorf <rasmus@php.net> | 1999-12-05 13:41:42 +0000 | 
| commit | ca362445c486e878d3ae287683d14fd54c13ebd6 (patch) | |
| tree | a4bd1d9ff533afeb9d547e9aa0cd4f2fd8c4ccdf | |
| parent | ae1b7bf4b8f211726d21bbf489bee78c8a3c4e2e (diff) | |
| download | php-git-ca362445c486e878d3ae287683d14fd54c13ebd6.tar.gz | |
Fix a maintainer-mode warning
| -rw-r--r-- | ext/standard/lcg.c | 8 | ||||
| -rw-r--r-- | ext/standard/php_lcg.h | 2 | 
2 files changed, 6 insertions, 4 deletions
| diff --git a/ext/standard/lcg.c b/ext/standard/lcg.c index 6e87f24df8..6e7ecd8ef2 100644 --- a/ext/standard/lcg.c +++ b/ext/standard/lcg.c @@ -59,7 +59,9 @@ double php_combined_lcg(void)  	return z * 4.656613e-10;  } -static void init_globals(LCGLS_D) +static void lcg_init_globals(LCGLS_D); + +static void lcg_init_globals(LCGLS_D)  {  	LCG(s1) = 1;  #ifdef ZTS @@ -72,9 +74,9 @@ static void init_globals(LCGLS_D)  static int php_minit_lcg(INIT_FUNC_ARGS)  {  #ifdef ZTS -	lcg_globals_id = ts_allocate_id(sizeof(php_lcg_globals), init_globals, NULL); +	lcg_globals_id = ts_allocate_id(sizeof(php_lcg_globals), lcg_init_globals, NULL);  #else -	init_globals(); +	lcg_init_globals();  #endif  	return SUCCESS;  } diff --git a/ext/standard/php_lcg.h b/ext/standard/php_lcg.h index 3476460dfa..cf397f7771 100644 --- a/ext/standard/php_lcg.h +++ b/ext/standard/php_lcg.h @@ -32,7 +32,7 @@ PHP_FUNCTION(lcg_value);  #define LCG(v) (lcg_globals->v)  #define LCGLS_FETCH() php_lcg_globals *lcg_globals = ts_resource(lcg_globals_id)  #else -#define LCGLS_D +#define LCGLS_D void  #define LCG(v) (lcg_globals.v)  #define LCGLS_FETCH()  #endif | 
