diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-04-21 23:47:39 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-04-21 23:47:39 +0000 |
commit | 882e83ccf31fca22178b290a6753a605bb52044c (patch) | |
tree | e2e6ec6ef7e162fd03a03e5c71bc96ce90d1c105 /usr.sbin/config/hash.c | |
parent | 67d88b0a9910a68bb666b448d2dac29cb4d3d8c2 (diff) |
sync to netbsd 960418
Diffstat (limited to 'usr.sbin/config/hash.c')
-rw-r--r-- | usr.sbin/config/hash.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/config/hash.c b/usr.sbin/config/hash.c index e1290fd9456..538b7a703ff 100644 --- a/usr.sbin/config/hash.c +++ b/usr.sbin/config/hash.c @@ -1,5 +1,5 @@ -/* $OpenBSD: hash.c,v 1.2 1996/03/25 15:55:05 niklas Exp $ */ -/* $NetBSD: hash.c,v 1.2 1996/03/03 17:28:15 thorpej Exp $ */ +/* $OpenBSD: hash.c,v 1.3 1996/04/21 23:40:12 deraadt Exp $ */ +/* $NetBSD: hash.c,v 1.3 1996/03/17 13:18:20 cgd Exp $ */ /* * Copyright (c) 1992, 1993 @@ -262,6 +262,8 @@ ht_insrep(ht, nam, val, replace) } *hpp = hp = newhashent(nam, h); hp->h_value = val; + if (++ht->ht_used > ht->ht_lim) + ht_expand(ht); return (0); } |