]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/resolve/dns_type-to-name.awk
resolved: add missing error code check when initializing DNS-over-TLS
[thirdparty/systemd.git] / src / resolve / dns_type-to-name.awk
1 BEGIN{
2 print "const char *dns_type_to_string(int type) {\n\tswitch(type) {"
3 }
4 {
5 printf " case DNS_TYPE_%s: return ", $1;
6 sub(/_/, "-");
7 printf "\"%s\";\n", $1
8 }
9 END{
10 print " default: return NULL;\n\t}\n}\n"
11 }