[systemd-commits] src/libsystemd-terminal
David Herrmann
dvdhrm at kemper.freedesktop.org
Mon Sep 15 08:13:39 PDT 2014
src/libsystemd-terminal/idev.c | 8 ++++----
src/libsystemd-terminal/sysview.c | 10 +++++-----
2 files changed, 9 insertions(+), 9 deletions(-)
New commits:
commit 440046e9220aa418ac0ffbdf126512b3341dce23
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Mon Sep 15 17:12:41 2014 +0200
terminal: fix missing hashmap_new() conversions
hashmap_new() now takes *_ops instead of individual functions. Fix up any
missing invokations of it that haven't been converted already.
diff --git a/src/libsystemd-terminal/idev.c b/src/libsystemd-terminal/idev.c
index d37e031..8592930 100644
--- a/src/libsystemd-terminal/idev.c
+++ b/src/libsystemd-terminal/idev.c
@@ -454,11 +454,11 @@ int idev_session_new(idev_session **out,
return r;
}
- s->element_map = hashmap_new(string_hash_func, string_compare_func);
+ s->element_map = hashmap_new(&string_hash_ops);
if (!s->element_map)
return -ENOMEM;
- s->device_map = hashmap_new(string_hash_func, string_compare_func);
+ s->device_map = hashmap_new(&string_hash_ops);
if (!s->device_map)
return -ENOMEM;
@@ -647,11 +647,11 @@ int idev_context_new(idev_context **out, sd_event *event, sd_bus *sysbus) {
if (sysbus)
c->sysbus = sd_bus_ref(sysbus);
- c->session_map = hashmap_new(string_hash_func, string_compare_func);
+ c->session_map = hashmap_new(&string_hash_ops);
if (!c->session_map)
return -ENOMEM;
- c->data_map = hashmap_new(string_hash_func, string_compare_func);
+ c->data_map = hashmap_new(&string_hash_ops);
if (!c->data_map)
return -ENOMEM;
diff --git a/src/libsystemd-terminal/sysview.c b/src/libsystemd-terminal/sysview.c
index bd345fa..2083f5a 100644
--- a/src/libsystemd-terminal/sysview.c
+++ b/src/libsystemd-terminal/sysview.c
@@ -368,11 +368,11 @@ int sysview_seat_new(sysview_seat **out, sysview_context *c, const char *name) {
if (!seat->name)
return -ENOMEM;
- seat->session_map = hashmap_new(string_hash_func, string_compare_func);
+ seat->session_map = hashmap_new(&string_hash_ops);
if (!seat->session_map)
return -ENOMEM;
- seat->device_map = hashmap_new(string_hash_func, string_compare_func);
+ seat->device_map = hashmap_new(&string_hash_ops);
if (!seat->device_map)
return -ENOMEM;
@@ -767,15 +767,15 @@ int sysview_context_new(sysview_context **out,
return errno > 0 ? -errno : -EFAULT;
}
- c->seat_map = hashmap_new(string_hash_func, string_compare_func);
+ c->seat_map = hashmap_new(&string_hash_ops);
if (!c->seat_map)
return -ENOMEM;
- c->session_map = hashmap_new(string_hash_func, string_compare_func);
+ c->session_map = hashmap_new(&string_hash_ops);
if (!c->session_map)
return -ENOMEM;
- c->device_map = hashmap_new(string_hash_func, string_compare_func);
+ c->device_map = hashmap_new(&string_hash_ops);
if (!c->device_map)
return -ENOMEM;
More information about the systemd-commits
mailing list