summaryrefslogtreecommitdiff
path: root/src/resolve
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-04-24 19:40:02 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-04-25 08:49:16 -0400
commitb884196cc1565eaf1b97141fbfa0667ee348e463 (patch)
tree9c61d74211ac9227af5ebc7061bd2f54ff4b200c /src/resolve
parentdd6ab3df749172e0b85de00338b485d8f4e24fa1 (diff)
downloadsystemd-b884196cc1565eaf1b97141fbfa0667ee348e463.tar.gz
meson: also indent scripts with 8 spaces
Diffstat (limited to 'src/resolve')
-rw-r--r--src/resolve/dns_type-to-name.awk14
1 files changed, 9 insertions, 5 deletions
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" }