diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-12-25 18:03:05 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-12-25 18:04:04 +0100 |
commit | d9416f8a82d6afd8219d2dfc84817aa33ca8f3cb (patch) | |
tree | 9d94a585fa4cd4334cf7e0722b7b85c590692689 /src | |
parent | 693eb9a2d42d71445dad273a76e2470199d1dc5a (diff) |
man: document sd_bus_message_get_cookie()
Diffstat (limited to 'src')
-rw-r--r-- | src/libsystemd-bus/bus-message.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd-bus/bus-message.c b/src/libsystemd-bus/bus-message.c index f16f92780b..05cd512df6 100644 --- a/src/libsystemd-bus/bus-message.c +++ b/src/libsystemd-bus/bus-message.c @@ -816,7 +816,7 @@ _public_ int sd_bus_message_get_type(sd_bus_message *m, uint8_t *type) { _public_ int sd_bus_message_get_cookie(sd_bus_message *m, uint64_t *cookie) { assert_return(m, -EINVAL); assert_return(cookie, -EINVAL); - assert_return(m->header->serial != 0, -ENOENT); + assert_return(m->header->serial != 0, -ENODATA); *cookie = BUS_MESSAGE_COOKIE(m); return 0; @@ -825,7 +825,7 @@ _public_ int sd_bus_message_get_cookie(sd_bus_message *m, uint64_t *cookie) { _public_ int sd_bus_message_get_reply_cookie(sd_bus_message *m, uint64_t *cookie) { assert_return(m, -EINVAL); assert_return(cookie, -EINVAL); - assert_return(m->reply_cookie != 0, -ENOENT); + assert_return(m->reply_cookie != 0, -ENODATA); *cookie = m->reply_cookie; return 0; |