diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-04-27 17:14:49 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-04-27 17:14:49 +0000 |
commit | 3b290ea43cd3a370c0a1fa3aa1c787cca5e66b46 (patch) | |
tree | 5531ecb5635cc4f653d32643d2f16ab458600579 /packages | |
parent | afa51caf16240e570dffe0d8e7e6a99766c676a9 (diff) | |
download | pfsense-packages-3b290ea43cd3a370c0a1fa3aa1c787cca5e66b46.tar.gz pfsense-packages-3b290ea43cd3a370c0a1fa3aa1c787cca5e66b46.tar.bz2 pfsense-packages-3b290ea43cd3a370c0a1fa3aa1c787cca5e66b46.zip |
* Minor style cleanups
Diffstat (limited to 'packages')
-rw-r--r-- | packages/tinydns/tinydns.inc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/tinydns/tinydns.inc b/packages/tinydns/tinydns.inc index 32db59fc..a17e6edb 100644 --- a/packages/tinydns/tinydns.inc +++ b/packages/tinydns/tinydns.inc @@ -590,6 +590,9 @@ function tinydns_add_active_leases($fl,$fd, $leasedomain){ $lip = strlen("lease") + 1; $lis = strlen("binding state active"); $lic = strlen("client-hostname"); + $leaseip = ""; + $leasestatus = ""; + $leasehostname = ""; while (!feof($fl)) { $leases = fgets($fl, 4096); $discard = ($leases[0] == "#") OR ($leases[0] == "\n"); @@ -625,6 +628,7 @@ function tinydns_add_active_leases($fl,$fd, $leasedomain){ fclose($fl); $leaselines = $i; } + function tinydns_get_dns_record_type($tinydnsrecord){ $rtype = ""; $rtype2 = ""; $rdns = ""; switch ($tinydnsrecord) { @@ -701,7 +705,8 @@ function tinydns_dnscache_forwarding_servers() { printf("Error: cannot write to /etc/dnscache/root/servers/@ in tinydns_dnscache_forwarding_servers().\n"); return 1; } - if($iprecords)fwrite($fr, $iprecords); + if($iprecords) + fwrite($fr, $iprecords); fclose($fr); } |