diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-11-04 16:27:05 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-11-04 18:09:19 +0100 |
commit | 356779df90a2ecab5da2cb310ad0f8ebc9ca9f46 (patch) | |
tree | cefebde8b6b947ec44bdfbd145b5a084528077a2 /src/journal-remote | |
parent | test: use assert_se in test_hashmap_move (diff) | |
download | systemd-356779df90a2ecab5da2cb310ad0f8ebc9ca9f46.tar.xz systemd-356779df90a2ecab5da2cb310ad0f8ebc9ca9f46.zip |
sd-event: rename sd_event_source_set_name() to sd_event_source_get_name()
To mirror the recent name change of the concept for sd_bus objects,
follow the same logic for sd_event_source objects, too.
Diffstat (limited to 'src/journal-remote')
-rw-r--r-- | src/journal-remote/journal-remote.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/journal-remote/journal-remote.c b/src/journal-remote/journal-remote.c index dc7120bbd5..03410c7925 100644 --- a/src/journal-remote/journal-remote.c +++ b/src/journal-remote/journal-remote.c @@ -398,7 +398,7 @@ static int add_source(RemoteServer *s, int fd, char* name, bool own_name) { goto error; } - r = sd_event_source_set_name(source->event, name); + r = sd_event_source_set_description(source->event, name); if (r < 0) { log_error("Failed to set source name for fd:%d: %s", fd, strerror(-r)); goto error; @@ -426,7 +426,7 @@ static int add_raw_socket(RemoteServer *s, int fd) { snprintf(name, sizeof(name), "raw-socket-%d", fd); - r = sd_event_source_set_name(s->listen_event, name); + r = sd_event_source_set_description(s->listen_event, name); if (r < 0) return r; @@ -724,7 +724,7 @@ static int setup_microhttpd_server(RemoteServer *s, goto error; } - r = sd_event_source_set_name(d->event, "epoll-fd"); + r = sd_event_source_set_description(d->event, "epoll-fd"); if (r < 0) { log_error("Failed to set source name: %s", strerror(-r)); goto error; @@ -803,7 +803,7 @@ static int setup_signals(RemoteServer *s) { if (r < 0) return r; - r = sd_event_source_set_name(s->sigterm_event, "sigterm"); + r = sd_event_source_set_description(s->sigterm_event, "sigterm"); if (r < 0) return r; @@ -811,7 +811,7 @@ static int setup_signals(RemoteServer *s) { if (r < 0) return r; - r = sd_event_source_set_name(s->sigint_event, "sigint"); + r = sd_event_source_set_description(s->sigint_event, "sigint"); if (r < 0) return r; |