Commit 691b01df authored by Chris's avatar Chris

correction indentation

parent 98ce7cd7
......@@ -54,7 +54,7 @@ zend_module_entry phpmyemail_module_entry = {
PHP_MINIT(mail_php),
PHP_MSHUTDOWN(mail_php),
NULL,
NULL,
NULL,
NULL,
PHPMYEMAIL_VERSION,
STANDARD_MODULE_PROPERTIES
......@@ -91,7 +91,7 @@ ZEND_FUNCTION(mail_php)
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sssssss|sss", &login, &login_len, &pass, &pass_len, &to, &to_len, &from, &from_len, &reply, &reply_len, &subject, &subject_len, &content, &content_len, &smtp_server, &smtp_server_len, &smtp_port, &smtp_port_len, &ssl_on, &ssl_on_len) == FAILURE) {
return;
}
#ifdef USE_MYSQL
if (INI_BOOL("mail_php.enable_mysql")) {
if (sql(from)!=0) {
......@@ -99,15 +99,15 @@ ZEND_FUNCTION(mail_php)
}
}
#endif
struct sockaddr_in serverSockAddr; /* Socket Address */
struct hostent *serverHostEnt; /* Host description */
in_addr_t hostAddr; /* Hostname address */
bzero(&serverSockAddr,sizeof(serverSockAddr));
/* IP address to long integer conversion */
/* hostAddr = inet_addr(server_name); */
/* si le parametre du fichier de conf est none pour le smtp, on lis l'argument */
if (strcmp(INI_STR("mail_php.smtp_server"),"none")==0) {
hostAddr = inet_addr(smtp_server);
......@@ -126,7 +126,7 @@ ZEND_FUNCTION(mail_php)
sslOn=0;
}
}
if ( (in_addr_t)hostAddr != (in_addr_t)-1)
bcopy(&hostAddr,&serverSockAddr.sin_addr,sizeof(hostAddr));
else /* If a name is given */
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment