summaryrefslogtreecommitdiff
path: root/src/libsystemd-terminal/sysview.c
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2014-09-15 17:12:41 +0200
committerDavid Herrmann <dh.herrmann@gmail.com>2014-09-15 17:12:41 +0200
commit440046e9220aa418ac0ffbdf126512b3341dce23 (patch)
tree592382f8638f44e59ae547d4f89bd2bd7f6f5d19 /src/libsystemd-terminal/sysview.c
parent1acf16634912d8a35690fff9d7ad2bd0a91ce576 (diff)
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.
Diffstat (limited to 'src/libsystemd-terminal/sysview.c')
-rw-r--r--src/libsystemd-terminal/sysview.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libsystemd-terminal/sysview.c b/src/libsystemd-terminal/sysview.c
index bd345fa22e..2083f5a7e0 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;