summaryrefslogtreecommitdiff
path: root/usr.sbin/ldapd/uuid.c
diff options
context:
space:
mode:
authorMartin Hedenfal <martinh@cvs.openbsd.org>2010-06-15 15:14:58 +0000
committerMartin Hedenfal <martinh@cvs.openbsd.org>2010-06-15 15:14:58 +0000
commit453528e3eea76e2ddc0470bd05e3854d238988ca (patch)
tree4716606917b646247c6e338054d60aade02b77c8 /usr.sbin/ldapd/uuid.c
parent2bce23f67dde4f001e337389a57400d3de20e053 (diff)
remove unused uuid_hash function, found by lint
Diffstat (limited to 'usr.sbin/ldapd/uuid.c')
-rw-r--r--usr.sbin/ldapd/uuid.c26
1 files changed, 2 insertions, 24 deletions
diff --git a/usr.sbin/ldapd/uuid.c b/usr.sbin/ldapd/uuid.c
index 40040adca1b..1bb38ac049d 100644
--- a/usr.sbin/ldapd/uuid.c
+++ b/usr.sbin/ldapd/uuid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uuid.c,v 1.2 2010/05/31 18:29:04 martinh Exp $ */
+/* $OpenBSD: uuid.c,v 1.3 2010/06/15 15:14:57 martinh Exp $ */
/*
* Copyright (c) 2002, Stockholms Universitet
* (Stockholm University, Stockholm Sweden)
@@ -154,7 +154,7 @@ uuid_compare(const afsUUID *uuid1, const afsUUID *uuid2)
* Creates a new UUID.
*/
-int
+void
uuid_create(afsUUID *uuid)
{
static int uuid_inited = 0;
@@ -219,8 +219,6 @@ uuid_create(afsUUID *uuid)
uuid->clock_seq_hi_and_reserved |= 0x80; /* dce variant */
memcpy(uuid->node, nodeaddr, 6);
-
- return 0;
}
/*
@@ -281,26 +279,6 @@ uuid_from_string(const char *str, afsUUID *uuid)
}
/*
- * Creates a hash value for a UUID.
- */
-
-uint32_t
-uuid_hash(const afsUUID *uuid)
-{
- uint32_t hash;
- const uint32_t *hp;
- unsigned int i;
-
- /* use the sum instead ? */
-
- hash = 0;
- hp = (const uint32_t *)uuid;
- for (i = 0; i < sizeof(*uuid)/4; i++, hp++)
- hash ^= *hp;
- return hash;
-}
-
-/*
* Determines if a UUID is nil.
*/