Commit: 30fd1c900c6650d3a9629c27680bb27913f4fa53 Parent: 8e9737a1b59cd76dde5b56cb19343cbddb21e826 Author: Randy Palamar Date: Thu, 26 Aug 2021 17:54:28 -0600 dns.c: remove useless switch statement Diffstat:
M | dns.c | | | 9 | ++++----- |
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/dns.c b/dns.c @@ -408,12 +408,11 @@ void dns_clear_host(char *name) unsigned long dns_info(int type) { - switch (type) { - case CI_FILES: + if (type == CI_FILES) return list_size(&dns_cache); - default: - internal("dns_info: bad request"); - } + + die("dns_info()\n"); + /* NOTREACHED */ return 0; }