diff --git a/src/hosts/hosts.go b/src/hosts/hosts.go index cd84f33..437f656 100644 --- a/src/hosts/hosts.go +++ b/src/hosts/hosts.go @@ -20,7 +20,7 @@ type siteEntry struct { site string } -func Update(config cfg.Config, tmpdir, hostsloc string, daemon bool, interval int)(err error){ +func Update(config cfg.Config, tmpdir, hostsloc string)(err error){ var siteBuff []siteList err = error(nil) diff --git a/src/rhosts.go b/src/rhosts.go index 4e0de53..4f94720 100644 --- a/src/rhosts.go +++ b/src/rhosts.go @@ -97,8 +97,10 @@ func main() { log.Print(config) if (err != nil){log.Panic("Failed to parse config: " + cfgloc)} + + for true { - err := hosts.Update(config, tmpdir, hostsloc,daemon, interval) + err := hosts.Update(config, tmpdir, hostsloc) if (err != nil){ log.Print(err) }