From b884196cc1565eaf1b97141fbfa0667ee348e463 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Mon, 24 Apr 2017 19:40:02 -0400 Subject: meson: also indent scripts with 8 spaces --- src/resolve/dns_type-to-name.awk | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src/resolve') diff --git a/src/resolve/dns_type-to-name.awk b/src/resolve/dns_type-to-name.awk index 64d675b0a9..badb1824b5 100644 --- a/src/resolve/dns_type-to-name.awk +++ b/src/resolve/dns_type-to-name.awk @@ -1,7 +1,11 @@ -BEGIN{ print "const char *dns_type_to_string(int type) {\n\tswitch(type) {" } +BEGIN{ + print "const char *dns_type_to_string(int type) {\n\tswitch(type) {" +} { - printf " case DNS_TYPE_%s: return ", $1; - sub(/_/, "-"); - printf "\"%s\";\n", $1 + printf " case DNS_TYPE_%s: return ", $1; + sub(/_/, "-"); + printf "\"%s\";\n", $1 +} +END{ + print " default: return NULL;\n\t}\n}\n" } -END{ print " default: return NULL;\n\t}\n}\n" } -- cgit v1.2.1