From: Ilia Alshanetsky Date: Tue, 5 Nov 2002 19:57:04 +0000 (+0000) Subject: Fixed compile warning, removed unused variables and added process.h header, X-Git-Tag: php-4.3.0RC1~245 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=89d4cd1d6bc5a2755cdd386719bed59ffc1c55ea;p=php Fixed compile warning, removed unused variables and added process.h header, which is needed on Windows for getpid() function. --- diff --git a/ext/yaz/php_yaz.c b/ext/yaz/php_yaz.c index f7445e0fa6..1c3d802522 100644 --- a/ext/yaz/php_yaz.c +++ b/ext/yaz/php_yaz.c @@ -40,6 +40,10 @@ #error YAZ version 1.9 or later must be used. #endif +#ifdef PHP_WIN32 +#include +#endif + #include #include #include @@ -83,7 +87,6 @@ static Yaz_Association yaz_association_mk () static void yaz_association_destroy (Yaz_Association p) { - int i; if (!p) return ; ZOOM_resultset_destroy (p->zoom_set); @@ -506,7 +509,7 @@ PHP_FUNCTION(yaz_wait) { int no = 0; ZOOM_connection conn_ar[MAX_ASSOC]; - int i, id, timeout = 15; + int i, timeout = 15; if (ZEND_NUM_ARGS() == 1) { @@ -1248,7 +1251,6 @@ PHP_FUNCTION(yaz_scan_result) if (p && p->zoom_scan) { int pos = 0; - const char *term; int occ, len; int size = ZOOM_scanset_size (p->zoom_scan);