summaryrefslogtreecommitdiffstats
path: root/lib/libc/ohash/ohash_enum.c
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>2014-05-12 19:27:24 +0000
committerespie <espie@openbsd.org>2014-05-12 19:27:24 +0000
commit2bf795a714f08a985465ec80b0ee89790dec196a (patch)
tree17d17b3a3d0c115d2549cca74dfac251d2f9fbe6 /lib/libc/ohash/ohash_enum.c
parent...better if I actually unplug it, Makefile doesn't do it (diff)
downloadwireguard-openbsd-2bf795a714f08a985465ec80b0ee89790dec196a.tar.xz
wireguard-openbsd-2bf795a714f08a985465ec80b0ee89790dec196a.zip
these files have moved to libutil
Diffstat (limited to 'lib/libc/ohash/ohash_enum.c')
-rw-r--r--lib/libc/ohash/ohash_enum.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/lib/libc/ohash/ohash_enum.c b/lib/libc/ohash/ohash_enum.c
deleted file mode 100644
index 08b8463fb64..00000000000
--- a/lib/libc/ohash/ohash_enum.c
+++ /dev/null
@@ -1,36 +0,0 @@
-/* $OpenBSD: ohash_enum.c,v 1.3 2004/06/22 20:00:16 espie Exp $ */
-/* ex:ts=8 sw=4:
- */
-
-/* Copyright (c) 1999, 2004 Marc Espie <espie@openbsd.org>
- *
- * Permission to use, copy, modify, and distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- */
-
-#include "ohash_int.h"
-
-void *
-ohash_first(struct ohash *h, unsigned int *pos)
-{
- *pos = 0;
- return ohash_next(h, pos);
-}
-
-void *
-ohash_next(struct ohash *h, unsigned int *pos)
-{
- for (; *pos < h->size; (*pos)++)
- if (h->t[*pos].p != DELETED && h->t[*pos].p != NULL)
- return (void *)h->t[(*pos)++].p;
- return NULL;
-}