diff options
author | marcel <marcel@FreeBSD.org> | 2005-01-03 02:56:15 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2005-01-03 02:56:15 +0000 |
commit | 0be8a2d8c21f71cb919e52120adfb15b41123890 (patch) | |
tree | 9663113cde4df52392e12bd3e2fdd1c10201eb84 | |
parent | 06cfd21d61944e360ebb21e43f663f5e79d462fc (diff) | |
download | FreeBSD-src-0be8a2d8c21f71cb919e52120adfb15b41123890.zip FreeBSD-src-0be8a2d8c21f71cb919e52120adfb15b41123890.tar.gz |
Constify arguments.
-rw-r--r-- | include/uuid.h | 12 | ||||
-rw-r--r-- | lib/libc/uuid/uuid_compare.c | 4 | ||||
-rw-r--r-- | lib/libc/uuid/uuid_equal.c | 4 | ||||
-rw-r--r-- | lib/libc/uuid/uuid_hash.c | 4 | ||||
-rw-r--r-- | lib/libc/uuid/uuid_is_nil.c | 4 | ||||
-rw-r--r-- | lib/libc/uuid/uuid_to_string.c | 6 |
6 files changed, 17 insertions, 17 deletions
diff --git a/include/uuid.h b/include/uuid.h index dcb85c8..13e65ea 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 9d1c3c6..f57a094 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 1f6328c..e4c48e5 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 4753a12..e5695ee 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 d397f7a..1db8265 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 16bda3a..f816391 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", |