[systemd-commits] 3 commits - TODO src/hashmap.c
Lennart Poettering
lennart at kemper.freedesktop.org
Fri Oct 7 13:00:52 PDT 2011
TODO | 4 ++++
src/hashmap.c | 8 +++++---
2 files changed, 9 insertions(+), 3 deletions(-)
New commits:
commit 9a36607584bbd1d78775353e022a51794b4e27b1
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Oct 7 22:00:23 2011 +0200
update TODO
diff --git a/TODO b/TODO
index 5985bc1..efe27bb 100644
--- a/TODO
+++ b/TODO
@@ -15,6 +15,8 @@ Bugfixes:
automount points even when the original .automount file did not exist
anymore. Only the .mount unit was still around.
+* make polkit checks async
+
Features:
* bind mounts should be ordered after remount-root-fs.service
commit 7dfe96eebc1cde5d6b23d7879087ea9102943d7d
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Oct 7 21:00:48 2011 +0200
hashmap: use different version of DJB's hash algorithm that uses shifting instead of multiplication
diff --git a/src/hashmap.c b/src/hashmap.c
index 0d89da4..95ea45d 100644
--- a/src/hashmap.c
+++ b/src/hashmap.c
@@ -124,11 +124,13 @@ __attribute__((destructor)) static void cleanup_pool(void) {
#endif
unsigned string_hash_func(const void *p) {
- unsigned hash = 0;
- const char *c;
+ unsigned hash = 5381;
+ const signed char *c;
+
+ /* DJB's hash function */
for (c = p; *c; c++)
- hash = 31 * hash + (unsigned) *c;
+ hash = (hash << 5) + hash + (unsigned) *c;
return hash;
}
commit 340047e95de331278fabc5515d089219dd1e6c6d
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Oct 7 20:50:59 2011 +0200
update TODO
diff --git a/TODO b/TODO
index 9855637..5985bc1 100644
--- a/TODO
+++ b/TODO
@@ -17,6 +17,8 @@ Bugfixes:
Features:
+* bind mounts should be ordered after remount-root-fs.service
+
* add an option to make mounts private/shareable and so on, enable this for root by default
* internal restart counter for units (focus on auto-respawn)
More information about the systemd-commits
mailing list