summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoian Bonev <bbonev@php.net>2001-02-07 17:48:00 +0000
committerBoian Bonev <bbonev@php.net>2001-02-07 17:48:00 +0000
commit156207b37bd2b23e1d6a304df4eda27b0bf3aa83 (patch)
treebc5507a913ef153586cc2eb6925c305a47368d02
parent271617483aff46e0e82fcfe2849ea050c6ca2cfd (diff)
downloadphp-git-156207b37bd2b23e1d6a304df4eda27b0bf3aa83.tar.gz
# fixed several warnings - variables not used, functions not declared
# added vclose() declaration - vpopmail does not declare it
-rw-r--r--ext/vpopmail/php_vpopmail.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/ext/vpopmail/php_vpopmail.c b/ext/vpopmail/php_vpopmail.c
index db51817f9c..291617126b 100644
--- a/ext/vpopmail/php_vpopmail.c
+++ b/ext/vpopmail/php_vpopmail.c
@@ -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;