aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2005-01-03 02:56:15 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2005-01-03 02:56:15 +0000
commit1d1b40fed8e4db18ec08c0d83b6a0b7c7d930895 (patch)
tree9663113cde4df52392e12bd3e2fdd1c10201eb84
parent483e82b86ccb5519237c3f6b94e1c7efe996a89c (diff)
Notes
-rw-r--r--include/uuid.h12
-rw-r--r--lib/libc/uuid/uuid_compare.c4
-rw-r--r--lib/libc/uuid/uuid_equal.c4
-rw-r--r--lib/libc/uuid/uuid_hash.c4
-rw-r--r--lib/libc/uuid/uuid_is_nil.c4
-rw-r--r--lib/libc/uuid/uuid_to_string.c6
6 files changed, 17 insertions, 17 deletions
diff --git a/include/uuid.h b/include/uuid.h
index dcb85c849018d..13e65ea4a09f0 100644
--- a/include/uuid.h
+++ b/include/uuid.h
@@ -1,5 +1,5 @@
/*-
- * Copyright (c) 2002 Marcel Moolenaar
+ * Copyright (c) 2002,2005 Marcel Moolenaar
* Copyright (c) 2002 Hiten Mahesh Pandya
* All rights reserved.
*
@@ -46,14 +46,14 @@
#define uuid_s_no_memory 3
__BEGIN_DECLS
-int32_t uuid_compare(uuid_t *, uuid_t *, uint32_t *);
+int32_t uuid_compare(const uuid_t *, const uuid_t *, uint32_t *);
void uuid_create(uuid_t *, uint32_t *);
void uuid_create_nil(uuid_t *, uint32_t *);
-int32_t uuid_equal(uuid_t *, uuid_t *, uint32_t *);
+int32_t uuid_equal(const uuid_t *, const uuid_t *, uint32_t *);
void uuid_from_string(const char *, uuid_t *, uint32_t *);
-uint16_t uuid_hash(uuid_t *, uint32_t *);
-int32_t uuid_is_nil(uuid_t *, uint32_t *);
-void uuid_to_string(uuid_t *, char **, uint32_t *);
+uint16_t uuid_hash(const uuid_t *, uint32_t *);
+int32_t uuid_is_nil(const uuid_t *, uint32_t *);
+void uuid_to_string(const uuid_t *, char **, uint32_t *);
__END_DECLS
#endif /* _UUID_H_ */
diff --git a/lib/libc/uuid/uuid_compare.c b/lib/libc/uuid/uuid_compare.c
index 9d1c3c606a5f5..f57a0944ca4a0 100644
--- a/lib/libc/uuid/uuid_compare.c
+++ b/lib/libc/uuid/uuid_compare.c
@@ -1,5 +1,5 @@
/*-
- * Copyright (c) 2002 Marcel Moolenaar
+ * Copyright (c) 2002,2005 Marcel Moolenaar
* Copyright (c) 2002 Hiten Mahesh Pandya
* All rights reserved.
*
@@ -39,7 +39,7 @@
* than any non-nil UUID.
*/
int32_t
-uuid_compare(uuid_t *a, uuid_t *b, uint32_t *status)
+uuid_compare(const uuid_t *a, const uuid_t *b, uint32_t *status)
{
int res;
diff --git a/lib/libc/uuid/uuid_equal.c b/lib/libc/uuid/uuid_equal.c
index 1f6328cd149e3..e4c48e5253a12 100644
--- a/lib/libc/uuid/uuid_equal.c
+++ b/lib/libc/uuid/uuid_equal.c
@@ -1,5 +1,5 @@
/*-
- * Copyright (c) 2002 Marcel Moolenaar
+ * Copyright (c) 2002,2005 Marcel Moolenaar
* Copyright (c) 2002 Hiten Mahesh Pandya
* All rights reserved.
*
@@ -36,7 +36,7 @@
* http://www.opengroup.org/onlinepubs/009629399/uuid_equal.htm
*/
int32_t
-uuid_equal(uuid_t *a, uuid_t *b, uint32_t *status)
+uuid_equal(const uuid_t *a, const uuid_t *b, uint32_t *status)
{
if (status != NULL)
diff --git a/lib/libc/uuid/uuid_hash.c b/lib/libc/uuid/uuid_hash.c
index 4753a12756daf..e5695ee4f60e2 100644
--- a/lib/libc/uuid/uuid_hash.c
+++ b/lib/libc/uuid/uuid_hash.c
@@ -1,5 +1,5 @@
/*-
- * Copyright (c) 2002 Marcel Moolenaar
+ * Copyright (c) 2002,2005 Marcel Moolenaar
* Copyright (c) 2002 Hiten Mahesh Pandya
* All rights reserved.
*
@@ -35,7 +35,7 @@
* http://www.opengroup.org/onlinepubs/009629399/uuid_hash.htm
*/
uint16_t
-uuid_hash(uuid_t *u, uint32_t *status)
+uuid_hash(const uuid_t *u, uint32_t *status)
{
if (status)
diff --git a/lib/libc/uuid/uuid_is_nil.c b/lib/libc/uuid/uuid_is_nil.c
index d397f7a0a3cd0..1db8265f49334 100644
--- a/lib/libc/uuid/uuid_is_nil.c
+++ b/lib/libc/uuid/uuid_is_nil.c
@@ -1,5 +1,5 @@
/*-
- * Copyright (c) 2002 Marcel Moolenaar
+ * Copyright (c) 2002,2005 Marcel Moolenaar
* Copyright (c) 2002 Hiten Mahesh Pandya
* All rights reserved.
*
@@ -35,7 +35,7 @@
* http://www.opengroup.org/onlinepubs/009629399/uuid_is_nil.htm
*/
int32_t
-uuid_is_nil(uuid_t *u, uint32_t *status)
+uuid_is_nil(const uuid_t *u, uint32_t *status)
{
uint32_t *p;
diff --git a/lib/libc/uuid/uuid_to_string.c b/lib/libc/uuid/uuid_to_string.c
index 16bda3ac0ecf1..f816391f2a4fc 100644
--- a/lib/libc/uuid/uuid_to_string.c
+++ b/lib/libc/uuid/uuid_to_string.c
@@ -1,5 +1,5 @@
/*-
- * Copyright (c) 2002 Marcel Moolenaar
+ * Copyright (c) 2002,2005 Marcel Moolenaar
* Copyright (c) 2002 Hiten Mahesh Pandya
* All rights reserved.
*
@@ -41,7 +41,7 @@
* taken from the Hewlett-Packard implementation.
*/
void
-uuid_to_string(uuid_t *u, char **s, uint32_t *status)
+uuid_to_string(const uuid_t *u, char **s, uint32_t *status)
{
uuid_t nil;
@@ -54,7 +54,7 @@ uuid_to_string(uuid_t *u, char **s, uint32_t *status)
if (u == NULL) {
u = &nil;
- uuid_create_nil(u, NULL);
+ uuid_create_nil(&nil, NULL);
}
asprintf(s, "%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x",