Module Name: src
Committed By: uebayasi
Date: Sun Oct 12 05:25:21 UTC 2014
Modified Files:
src/usr.bin/config: hash.c
Log Message:
Fix typos in previous.
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/usr.bin/config/hash.c
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/config/hash.c
diff -u src/usr.bin/config/hash.c:1.9 src/usr.bin/config/hash.c:1.10
--- src/usr.bin/config/hash.c:1.9 Sun Oct 12 05:20:54 2014
+++ src/usr.bin/config/hash.c Sun Oct 12 05:25:21 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: hash.c,v 1.9 2014/10/12 05:20:54 uebayasi Exp $ */
+/* $NetBSD: hash.c,v 1.10 2014/10/12 05:25:21 uebayasi Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -265,7 +265,7 @@ ht_insrep2(struct hashtab *ht, const cha
struct hashenthead *hpp;
u_int h;
- h = hash2(0, nam1, NULL);
+ h = hash2(0, nam1, nam2);
hpp = &ht->ht_tab[h & ht->ht_mask];
TAILQ_FOREACH(hp, hpp, h_next) {
if (hp->h_name1 == nam1 &&
@@ -327,7 +327,7 @@ ht_lookup2(struct hashtab *ht, const cha
struct hashenthead *hpp;
u_int h;
- h = hash2(0, nam1, NULL);
+ h = hash2(0, nam1, nam2);
hpp = &ht->ht_tab[h & ht->ht_mask];
TAILQ_FOREACH(hp, hpp, h_next)
if (hp->h_name == nam1)