summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mack <zonque@gmail.com>2014-03-22 11:47:44 +0100
committerDaniel Mack <zonque@gmail.com>2014-03-22 11:47:44 +0100
commit7cf21e56256df75b01df2ce600fc9d0ed1530584 (patch)
treedf4ed8379c702b9dcb1f89dbf79af208caa494a8
parent0eb8444a9a056e5d6ac38988406bb8f52bb4e21e (diff)
downloadkdbus-bus-7cf21e56256df75b01df2ce600fc9d0ed1530584.tar.gz
kdbus-bus-7cf21e56256df75b01df2ce600fc9d0ed1530584.tar.bz2
kdbus-bus-7cf21e56256df75b01df2ce600fc9d0ed1530584.zip
Fix comment wrt KDBUS_MSG_FLAGS_WAIT_FOR_REPLY
This flag does not exist, fix it before more people get confused.
-rw-r--r--kdbus.h2
-rw-r--r--message.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/kdbus.h b/kdbus.h
index 6bb6777bf0b..01ef0053100 100644
--- a/kdbus.h
+++ b/kdbus.h
@@ -388,7 +388,7 @@ enum kdbus_payload_type {
* @cookie_reply: A reply to the requesting message with the same
* cookie. The requesting connection can match its
* request and the reply with this value
- * @offset_reply: If KDBUS_MSG_FLAGS_WAIT_FOR_REPLY, this field will
+ * @offset_reply: If KDBUS_MSG_FLAGS_EXPECT_REPLY, this field will
* contain the offset in the sender's pool where the
* reply is stored.
* @items: A list of kdbus_items containing the message payload
diff --git a/message.c b/message.c
index 4a63bac4379..f0d071dc971 100644
--- a/message.c
+++ b/message.c
@@ -299,8 +299,8 @@ int kdbus_kmsg_new_from_user(struct kdbus_conn *conn,
}
} else {
/*
- * KDBUS_MSG_FLAGS_EXPECT_REPLY is only valid together with
- * KDBUS_MSG_FLAGS_WAIT_FOR_REPLY
+ * KDBUS_MSG_FLAGS_SYNC_REPLY is only valid together with
+ * KDBUS_MSG_FLAGS_EXPECT_REPLY
*/
if (m->msg.flags & KDBUS_MSG_FLAGS_SYNC_REPLY) {
ret = -EINVAL;