]> granicus.if.org Git - php/commitdiff
Fixed compile warning, removed unused variables and added process.h header,
authorIlia Alshanetsky <iliaa@php.net>
Tue, 5 Nov 2002 19:57:04 +0000 (19:57 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 5 Nov 2002 19:57:04 +0000 (19:57 +0000)
which is needed on Windows for getpid() function.

ext/yaz/php_yaz.c

index f7445e0fa6dbb2153877914d6ad8e646485edcc8..1c3d802522d84a62119e6ae67b945a2845a8f68b 100644 (file)
 #error YAZ version 1.9 or later must be used.
 #endif
 
+#ifdef PHP_WIN32
+#include <process.h>
+#endif
+
 #include <yaz/proto.h>
 #include <yaz/marcdisp.h>
 #include <yaz/yaz-util.h>
@@ -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);