chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
conf: when looking for configurations look in /etc first, in /run second
[elogind.git]
/
src
/
sd-id128.c
diff --git
a/src/sd-id128.c
b/src/sd-id128.c
index 387cf919b02c7c7f217d1dacbb375e4bbc3ca210..b4184e1c7e56bd47273bb050b1666e76229c31bb 100644
(file)
--- a/
src/sd-id128.c
+++ b/
src/sd-id128.c
@@
-24,6
+24,7
@@
#include <unistd.h>
#include "sd-id128.h"
#include <unistd.h>
#include "sd-id128.h"
+
#include "util.h"
#include "macro.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;
}
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 */
/* 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.*/
* 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;
}
return 0;
}