__RCSID("$NetBSD: hcreate.c,v 1.2 2001/02/19 21:26:04 ross Exp $");
#endif /* LIBC_SCCS and not lint */
#endif
-__FBSDID("$FreeBSD: src/lib/libc/stdlib/hcreate.c,v 1.3 2002/06/27 13:18:27 deischen Exp $");
+__FBSDID("$FreeBSD: src/lib/libc/stdlib/hcreate.c,v 1.4 2008/07/06 11:31:20 danger Exp $");
#include <sys/types.h>
#include <sys/queue.h>
size_t idx;
unsigned int p2;
- /* Make sure this this isn't called when a table already exists. */
+ /* Make sure this is not called when a table already exists. */
if (htable != NULL) {
errno = EINVAL;
return 0;
if (nel < MIN_BUCKETS)
nel = MIN_BUCKETS;
- /* If it's too large, cap it. */
+ /* If it is too large, cap it. */
if (nel > MAX_BUCKETS)
nel = MAX_BUCKETS;
- /* If it's is not a power of two in size, round up. */
+ /* If it is not a power of two in size, round up. */
if ((nel & (nel - 1)) != 0) {
for (p2 = 0; nel != 0; p2++)
nel >>= 1;