AF_MAX isn't an address family so don't include it in the generated table.

This commit is contained in:
ginsbach 2014-02-27 01:17:13 +00:00
parent c265e52e42
commit 28ffd7e64f
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#!/usr/bin/awk -f #!/usr/bin/awk -f
# $NetBSD: tables.awk,v 1.1 2013/09/30 06:19:22 riastradh Exp $ # $NetBSD: tables.awk,v 1.2 2014/02/27 01:17:13 ginsbach Exp $
# Copyright (c) 2013 The NetBSD Foundation, Inc. # Copyright (c) 2013 The NetBSD Foundation, Inc.
# All rights reserved. # All rights reserved.
@ -38,7 +38,7 @@ BEGIN {
next next
} }
$2 ~ /^AF_[A-Z0-9_]*$/ { ($2 ~ /^AF_[A-Z0-9_]*$/) && ($2 != "AF_MAX") {
afs[n_afs++] = substr($2, 4) afs[n_afs++] = substr($2, 4)
} }