summaryrefslogtreecommitdiff
path: root/src/basic/af-to-name.awk
blob: b9cfbb7e37adf58908ead6c0e11d8411848f1bdc (plain)
1
2
3
4
5
6
7
8
9
10
11
# SPDX-License-Identifier: LGPL-2.1-or-later

BEGIN{
        print "static const char* const af_names[] = { "
}
!/AF_FILE/ && !/AF_ROUTE/ && !/AF_LOCAL/ {
        printf "        [%s] = \"%s\",\n", $1, $1
}
END{
        print "};"
}