]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/resolve/dns_type-to-name.awk
fix(journal-gatewayd): use relative urls (not starting with '/')
[thirdparty/systemd.git] / src / resolve / dns_type-to-name.awk
CommitLineData
b884196c
ZJS
1BEGIN{
2 print "const char *dns_type_to_string(int type) {\n\tswitch(type) {"
3}
5c23128d 4{
b884196c
ZJS
5 printf " case DNS_TYPE_%s: return ", $1;
6 sub(/_/, "-");
7 printf "\"%s\";\n", $1
8}
9END{
10 print " default: return NULL;\n\t}\n}\n"
5c23128d 11}