X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fsd-id128.c;h=4286ae7d146027b40b03378151387d8f8d0a4a1e;hb=90ccc3fca7e53a60a9e67b9d5812e1d4a27fc07d;hp=387cf919b02c7c7f217d1dacbb375e4bbc3ca210;hpb=000a2c98860e4c1de7e1477bedf6ad216f8c5854;p=elogind.git
diff --git a/src/sd-id128.c b/src/sd-id128.c
index 387cf919b..4286ae7d1 100644
--- a/src/sd-id128.c
+++ b/src/sd-id128.c
@@ -6,16 +6,16 @@
Copyright 2011 Lennart Poettering
systemd is free software; you can redistribute it and/or modify it
- under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
+ under the terms of the GNU Lesser General Public License as published by
+ the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
systemd is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
+ Lesser General Public License for more details.
- You should have received a copy of the GNU General Public License
+ You should have received a copy of the GNU Lesser General Public License
along with systemd; If not, see .
***/
@@ -24,6 +24,7 @@
#include
#include "sd-id128.h"
+
#include "util.h"
#include "macro.h"
@@ -73,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 */
@@ -215,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;
}