summaryrefslogtreecommitdiff
path: root/src/login/logind-session.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-08-19 00:04:46 +0200
committerLennart Poettering <lennart@poettering.net>2014-08-19 00:04:55 +0200
commitde99c9dcbaf6e474551266d8f0b519bf2d8d0522 (patch)
tree816b4d50c8e6bd2cf19a6951caf5cf454afda8ca /src/login/logind-session.c
parent1ac36c67dd4d3fb5b73939293673fcd6debae699 (diff)
hashmap: try to use the existing 64bit hash functions for dev_t if it is 64bit
Diffstat (limited to 'src/login/logind-session.c')
-rw-r--r--src/login/logind-session.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/login/logind-session.c b/src/login/logind-session.c
index 9d05faf47c..136bbce78e 100644
--- a/src/login/logind-session.c
+++ b/src/login/logind-session.c
@@ -44,21 +44,6 @@
static void session_remove_fifo(Session *s);
-static unsigned long devt_hash_func(const void *p, const uint8_t hash_key[HASH_KEY_SIZE]) {
- uint64_t u = *(const dev_t*)p;
-
- return uint64_hash_func(&u, hash_key);
-}
-
-static int devt_compare_func(const void *_a, const void *_b) {
- dev_t a, b;
-
- a = *(const dev_t*) _a;
- b = *(const dev_t*) _b;
-
- return a < b ? -1 : (a > b ? 1 : 0);
-}
-
Session* session_new(Manager *m, const char *id) {
Session *s;