diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2002-11-05 19:57:04 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2002-11-05 19:57:04 +0000 |
commit | 89d4cd1d6bc5a2755cdd386719bed59ffc1c55ea (patch) | |
tree | 85e880b86923318184ee5a13b7f4e7d05f7383d0 /ext/yaz/php_yaz.c | |
parent | 867519c42024e08ff578d029291d25533cb37a70 (diff) | |
download | php-git-89d4cd1d6bc5a2755cdd386719bed59ffc1c55ea.tar.gz |
Fixed compile warning, removed unused variables and added process.h header,
which is needed on Windows for getpid() function.
Diffstat (limited to 'ext/yaz/php_yaz.c')
-rw-r--r-- | ext/yaz/php_yaz.c | 8 |
1 files changed, 5 insertions, 3 deletions
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 <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); |