diff options
author | foobar <sniper@php.net> | 2003-12-07 18:19:30 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2003-12-07 18:19:30 +0000 |
commit | 36b255fa667e9cb0cccc7a59e6c65bc76fcb69df (patch) | |
tree | 32a1568a20bef99ef35c342b0d00bb76c467dbbd /ext | |
parent | fddacedfa09e0b887025e4d85d95d693b8bcb5f9 (diff) | |
download | php-git-36b255fa667e9cb0cccc7a59e6c65bc76fcb69df.tar.gz |
ws
Diffstat (limited to 'ext')
-rw-r--r-- | ext/standard/dns.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ext/standard/dns.c b/ext/standard/dns.c index 64b563096a..8936e0da26 100644 --- a/ext/standard/dns.c +++ b/ext/standard/dns.c @@ -89,7 +89,7 @@ PHP_FUNCTION(gethostbyaddr) addr = php_gethostbyaddr(Z_STRVAL_PP(arg)); - if(addr == NULL) { + if (addr == NULL) { #if HAVE_IPV6 && HAVE_INET_PTON php_error_docref(NULL TSRMLS_CC, E_WARNING, "Address is not a valid IPv4 or IPv6 address"); #else @@ -321,7 +321,8 @@ typedef union { } querybuf; /* {{{ php_parserr */ -static u_char *php_parserr(u_char *cp, querybuf *answer, int type_to_fetch, int store, zval **subarray) { +static u_char *php_parserr(u_char *cp, querybuf *answer, int type_to_fetch, int store, zval **subarray) +{ u_short type, class, dlen; u_long ttl; long n, i; @@ -572,7 +573,7 @@ PHP_FUNCTION(dns_get_record) for(type = (type_param==PHP_DNS_ANY ? (PHP_DNS_NUM_TYPES + 1) : 0); type < (addtl_recs ? (PHP_DNS_NUM_TYPES + 2) : PHP_DNS_NUM_TYPES) || first_query; type++) { first_query = 0; - switch(type) { + switch (type) { case 0: type_to_fetch = type_param&PHP_DNS_A ? T_A : 0; break; @@ -711,7 +712,7 @@ PHP_FUNCTION(dns_get_mx) u_char *cp, *end; int i; - switch(ZEND_NUM_ARGS()) { + switch (ZEND_NUM_ARGS()) { case 2: if (zend_get_parameters(ht, 2, &host, &mx_list) == FAILURE) { WRONG_PARAM_COUNT; |