Module Name: src
Committed By: christos
Date: Mon Sep 3 15:32:18 UTC 2012
Modified Files:
src/tests/lib/libc/net: t_protoent.sh
Log Message:
whitespace
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libc/net/t_protoent.sh
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/lib/libc/net/t_protoent.sh
diff -u src/tests/lib/libc/net/t_protoent.sh:1.1 src/tests/lib/libc/net/t_protoent.sh:1.2
--- src/tests/lib/libc/net/t_protoent.sh:1.1 Wed Jan 12 12:32:27 2011
+++ src/tests/lib/libc/net/t_protoent.sh Mon Sep 3 11:32:18 2012
@@ -1,4 +1,4 @@
-# $NetBSD: t_protoent.sh,v 1.1 2011/01/12 17:32:27 pgoyette Exp $
+# $NetBSD: t_protoent.sh,v 1.2 2012/09/03 15:32:18 christos Exp $
#
# Copyright (c) 2008 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -39,29 +39,28 @@ protoent_body()
# (3) prune duplicates
#
tr '\t' ' ' </etc/protocols | awk '
- function add(key, name, i, n, ar) {
+ function add(key, name, i, n, ar) {
n = split(names[key], ar);
- for (i=1; i<=n; i++) {
+ for (i = 1; i <= n; i++) {
if (name == ar[i]) {
- return;
+ return;
}
}
delete ar;
names[key] = names[key] " " name;
- }
-
- {
+ }
+ {
sub("#.*", "", $0);
gsub(" *", " ", $0);
- if (NF==0) {
+ if (NF == 0) {
next;
}
add($2, $1, 0);
- for (i=3; i<=NF; i++) {
+ for (i = 3; i <= NF; i++) {
add($2, $i, 1);
}
- }
- END {
+ }
+ END {
for (key in names) {
proto = key;