chiark / gitweb /
resolv.conf parser: Avoid duplicating lengths in option parser
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 24 Oct 2014 20:49:44 +0000 (21:49 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 26 Oct 2014 11:42:43 +0000 (11:42 +0000)
commit229f72fa85fb16abdb2ee760c0d89f28b6151d64
tree538e186b46e7639737bc0bb329f2ed1d83aed792
parent039a0566b2e321bbfcb51f667d32b5d890ee6f61
resolv.conf parser: Avoid duplicating lengths in option parser

Replace a lot of things like `l>=5 && memcmp(word,"debug",5)'
with use of some new macros.

No functional change.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/setup.c