hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit d1d410824213c6876e3105c59d2aa9e5030efcd5
parent 17c38b9486c7f19a8b65b8b524fc9f9e2f538cba
Author: Drew DeVault <sir@cmpwn.com>
Date:   Mon, 21 Jun 2021 12:24:28 -0400

unix::resolvconf: skip comments

Signed-off-by: Drew DeVault <sir@cmpwn.com>

Diffstat:
Munix/resolvconf/load.ha | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/unix/resolvconf/load.ha b/unix/resolvconf/load.ha @@ -31,6 +31,9 @@ export fn load() []ip::addr = { line: []u8 => line, }; defer free(line); + if (line[0] == '#': u32: u8) { + continue; + }; const scanner = bufio::fixed(line, io::mode::READ); defer io::close(scanner);