chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
manager: only issue overmount warning when the check succeeded
[elogind.git]
/
src
/
core
/
automount.c
diff --git
a/src/core/automount.c
b/src/core/automount.c
index 73a8ce17e4a7052e1e29c38cfdcb08696b7ac064..f72aca29579aea9bf61f5a9a3d25df329c88e536 100644
(file)
--- a/
src/core/automount.c
+++ b/
src/core/automount.c
@@
-685,7
+685,7
@@
static int automount_deserialize_item(Unit *u, const char *key, const char *valu
log_debug_unit(u->id, "Failed to parse token value %s", value);
else {
if (!a->tokens)
log_debug_unit(u->id, "Failed to parse token value %s", value);
else {
if (!a->tokens)
- if (!(a->tokens = set_new(
trivial_hash_func, trivial_compare_func
)))
+ if (!(a->tokens = set_new(
NULL
)))
return -ENOMEM;
r = set_put(a->tokens, UINT_TO_PTR(token));
return -ENOMEM;
r = set_put(a->tokens, UINT_TO_PTR(token));
@@
-762,7
+762,7
@@
static int automount_dispatch_io(sd_event_source *s, int fd, uint32_t events, vo
} else
log_debug_unit(UNIT(a)->id, "Got direct mount request on %s", a->where);
} else
log_debug_unit(UNIT(a)->id, "Got direct mount request on %s", a->where);
- r = set_ensure_allocated(&a->tokens,
trivial_hash_func, trivial_compare_func
);
+ r = set_ensure_allocated(&a->tokens,
NULL
);
if (r < 0) {
log_error_unit(UNIT(a)->id, "Failed to allocate token set.");
goto fail;
if (r < 0) {
log_error_unit(UNIT(a)->id, "Failed to allocate token set.");
goto fail;