]> granicus.if.org Git - php/commitdiff
# fixed several warnings - variables not used, functions not declared
authorBoian Bonev <bbonev@php.net>
Wed, 7 Feb 2001 17:48:00 +0000 (17:48 +0000)
committerBoian Bonev <bbonev@php.net>
Wed, 7 Feb 2001 17:48:00 +0000 (17:48 +0000)
# added vclose() declaration - vpopmail does not declare it

ext/vpopmail/php_vpopmail.c

index db51817f9ce367ee412f42b942f161fe6b7f9272..291617126b71bb16f4d48c6eb0bacdfe482ae3ce 100644 (file)
@@ -37,6 +37,7 @@
 #include "vpopmail.h"
 
 #include "ext/standard/exec.h"
+#include "ext/standard/info.h"
 #include "ext/standard/php_string.h"
 
 ZEND_DECLARE_MODULE_GLOBALS(vpopmail)
@@ -117,6 +118,10 @@ PHP_RINIT_FUNCTION(vpopmail)
        return SUCCESS;
 }
 
+/* nasty but... */
+void vclose();
+/* ...we need this */
+
 PHP_RSHUTDOWN_FUNCTION(vpopmail)
 {
        VPOPMAILLS_FETCH();
@@ -234,7 +239,6 @@ PHP_FUNCTION(vpopmail_add_alias_domain)
        char TmpBuf1[300];
        char TmpBuf2[300];
        int uid, gid;
-       int retval;
 
        if (ZEND_NUM_ARGS() != 2 || zend_get_parameters_ex(2, &domain, &aliasdomain) == FAILURE)
                WRONG_PARAM_COUNT;
@@ -289,9 +293,9 @@ PHP_FUNCTION(vpopmail_add_alias_domain)
    Add a new virtual domain */
 PHP_FUNCTION(vpopmail_add_domain_ex) {
        zval **domain, **passwd, **quota, **bounce, **apop;
-       int retval,len=0,argc=ZEND_NUM_ARGS(),Uid=VPOPMAILUID,Gid=VPOPMAILGID,is_bounce_email;
+       int retval,len=0,argc=ZEND_NUM_ARGS(),is_bounce_email;
        int fr_bounce=0,fr_quota=0;
-       char *q,*bo,*cmd,*escdomain="",*escpasswd="",*escquota="",*escbounce="",*escapop="";
+       char *cmd,*escdomain="",*escpasswd="",*escquota="",*escbounce="",*escapop="";
 
        if (argc < 2 || argc > 5 || zend_get_parameters_ex(argc, &domain, &passwd, &quota, &bounce, &apop) == FAILURE){
                WRONG_PARAM_COUNT;