Module Name:    src
Committed By:   ginsbach
Date:           Thu Feb 27 01:17:13 UTC 2014

Modified Files:
        src/usr.bin/getaddrinfo: tables.awk

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


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/usr.bin/getaddrinfo/tables.awk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/getaddrinfo/tables.awk
diff -u src/usr.bin/getaddrinfo/tables.awk:1.1 src/usr.bin/getaddrinfo/tables.awk:1.2
--- src/usr.bin/getaddrinfo/tables.awk:1.1	Mon Sep 30 06:19:22 2013
+++ src/usr.bin/getaddrinfo/tables.awk	Thu Feb 27 01:17:13 2014
@@ -1,6 +1,6 @@
 #!/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.
 # All rights reserved.
@@ -38,7 +38,7 @@ BEGIN {
 	next
 }
 
-$2 ~ /^AF_[A-Z0-9_]*$/ {
+($2 ~ /^AF_[A-Z0-9_]*$/) && ($2 != "AF_MAX") {
 	afs[n_afs++] = substr($2, 4)
 }
 

Reply via email to