summaryrefslogtreecommitdiffstats
path: root/tinydns-model.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-10-03 12:42:13 +0000
committerTed Trask <ttrask01@yahoo.com>2008-10-03 12:42:13 +0000
commitd30aea9b5d21a9486492417e20f1527564a0e973 (patch)
treef5f6e3fdd91a301bb85e6fe2061c7cb79dc43622 /tinydns-model.lua
parent298500bfeba88f7be408fba1ad312eef41cda4dc (diff)
downloadacf-tinydns-d30aea9b5d21a9486492417e20f1527564a0e973.tar.bz2
acf-tinydns-d30aea9b5d21a9486492417e20f1527564a0e973.tar.xz
Modified format library. parse_configfile2, update_configfile2, get_section, and set_section became parse_ini_file, update_ini_file, get_ini_section, and set_ini_section. Updated all code that used these functions.
git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@1539 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'tinydns-model.lua')
-rw-r--r--tinydns-model.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/tinydns-model.lua b/tinydns-model.lua
index 325e67e..61840d9 100644
--- a/tinydns-model.lua
+++ b/tinydns-model.lua
@@ -167,7 +167,7 @@ end
function getconfig()
local config = {}
- local listenaddr = format.parse_configfile2(fs.read_file(configfile),"","IP") or ""
+ local listenaddr = format.parse_ini_file(fs.read_file(configfile),"","IP") or ""
config.listen = cfe({
label="IP address to listen on",
value=listenaddr,
@@ -186,7 +186,7 @@ function setconfig(conf)
conf.value.listen.errtxt = errtxt
conf.errtxt = "Failed to set configuration"
else
- fs.write_file(configfile, format.update_configfile2(fs.read_file(configfile) or "","","IP",conf.value.listen.value))
+ fs.write_file(configfile, format.update_ini_file(fs.read_file(configfile) or "","","IP",conf.value.listen.value))
end
return conf