From e4bac488f9eee315c86ff2f6d15341be58a87a8a Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 7 Jan 2012 01:37:39 +0100 Subject: [PATCH] sd-id128: let's make our API a bit smaller, since sd_id128_make_v4_uuid() is dispensable --- src/libsystemd-id128.sym | 1 - src/sd-id128.c | 4 ++-- src/systemd/sd-id128.h | 2 -- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/libsystemd-id128.sym b/src/libsystemd-id128.sym index c4d1cf5d..2373fe66 100644 --- a/src/libsystemd-id128.sym +++ b/src/libsystemd-id128.sym @@ -14,7 +14,6 @@ global: sd_id128_to_string; sd_id128_from_string; sd_id128_randomize; - sd_id128_make_v4_uuid; sd_id128_get_machine; sd_id128_get_boot; local: diff --git a/src/sd-id128.c b/src/sd-id128.c index 289bcdc4..b4184e1c 100644 --- a/src/sd-id128.c +++ b/src/sd-id128.c @@ -74,7 +74,7 @@ _public_ int sd_id128_from_string(const char s[33], sd_id128_t *ret) { return 0; } -_public_ sd_id128_t sd_id128_make_v4_uuid(sd_id128_t id) { +static sd_id128_t make_v4_uuid(sd_id128_t id) { /* Stolen from generate_random_uuid() of drivers/char/random.c * in the kernel sources */ @@ -216,6 +216,6 @@ _public_ int sd_id128_randomize(sd_id128_t *ret) { * only guarantee this for newly generated UUIDs, not for * pre-existing ones.*/ - *ret = sd_id128_make_v4_uuid(t); + *ret = make_v4_uuid(t); return 0; } diff --git a/src/systemd/sd-id128.h b/src/systemd/sd-id128.h index d835cf47..22fcb932 100644 --- a/src/systemd/sd-id128.h +++ b/src/systemd/sd-id128.h @@ -39,8 +39,6 @@ int sd_id128_from_string(const char s[33], sd_id128_t *ret); int sd_id128_randomize(sd_id128_t *ret); -sd_id128_t sd_id128_make_v4_uuid(sd_id128_t id); - int sd_id128_get_machine(sd_id128_t *ret); int sd_id128_get_boot(sd_id128_t *ret); -- 2.39.5