Deleted Added
full compact
37c37
< __FBSDID("$FreeBSD: head/lib/libc/db/hash/hash.c 190489 2009-03-28 06:23:10Z delphij $");
---
> __FBSDID("$FreeBSD: head/lib/libc/db/hash/hash.c 190491 2009-03-28 06:30:43Z delphij $");
542,543c542
< hashp->error = EINVAL;
< errno = EINVAL;
---
> hashp->error = errno = EINVAL;
722c721
<
---
> next_bucket:
741c740
< } else
---
> } else {
742a742,751
> if (flag == R_NEXT) {
> hashp->cndx += 2;
> if (hashp->cndx > bp[0]) {
> hashp->cpage = NULL;
> hashp->cbucket++;
> hashp->cndx = 1;
> goto next_bucket;
> }
> }
> }
770,776d778
< ndx += 2;
< if (ndx > bp[0]) {
< hashp->cpage = NULL;
< hashp->cbucket++;
< hashp->cndx = 1;
< } else
< hashp->cndx = ndx;