1
0
mirror of https://github.com/php/php-src.git synced 2026-04-11 01:53:36 +02:00

# fixed several warnings - variables not used, functions not declared

# added vclose() declaration - vpopmail does not declare it
This commit is contained in:
Boian Bonev
2001-02-07 17:48:00 +00:00
parent 271617483a
commit 156207b37b

View 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;