Fix comment wrt KDBUS_MSG_FLAGS_WAIT_FOR_REPLY
authorDaniel Mack <zonque@gmail.com>
Sat, 22 Mar 2014 10:47:44 +0000 (11:47 +0100)
committerDaniel Mack <zonque@gmail.com>
Sat, 22 Mar 2014 10:47:44 +0000 (11:47 +0100)
This flag does not exist, fix it before more people get confused.

kdbus.h
message.c

diff --git a/kdbus.h b/kdbus.h
index 6bb6777bf0b34c354f6739730a67a925cd424d91..01ef00531000ba0599a8c6692df3b58df197b11a 100644 (file)
--- 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
index 4a63bac437950e6c469e7e6cd35adca7a24b4ca8..f0d071dc9714ab3f926cd435ce2cf079ac20ceaf 100644 (file)
--- 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;