chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
journalctl: allow globbing in --unit and --user-unit
[elogind.git]
/
src
/
login
/
logind-session.c
diff --git
a/src/login/logind-session.c
b/src/login/logind-session.c
index beaa60124f7c6b86300f1daa01e2cd2ccd830b0a..dc4b3e1621f033a8561e2d76fe345c88905b4c3c 100644
(file)
--- a/
src/login/logind-session.c
+++ b/
src/login/logind-session.c
@@
-40,10
+40,10
@@
#include "bus-error.h"
#include "logind-session.h"
#include "bus-error.h"
#include "logind-session.h"
-static unsigned
devt_hash_func(const void *p
) {
+static unsigned
long devt_hash_func(const void *p, const uint8_t hash_key[HASH_KEY_SIZE]
) {
uint64_t u = *(const dev_t*)p;
uint64_t u = *(const dev_t*)p;
- return uint64_hash_func(&u);
+ return uint64_hash_func(&u
, hash_key
);
}
static int devt_compare_func(const void *_a, const void *_b) {
}
static int devt_compare_func(const void *_a, const void *_b) {
@@
-79,7
+79,7
@@
Session* session_new(Manager *m, const char *id) {
return NULL;
}
return NULL;
}
- s->id =
path_get_file_
name(s->state_file);
+ s->id =
base
name(s->state_file);
if (hashmap_put(m->sessions, s->id, s) < 0) {
hashmap_free(s->devices);
if (hashmap_put(m->sessions, s->id, s) < 0) {
hashmap_free(s->devices);