Fix u64 types
authorDaniel Mack <daniel@zonque.org>
Wed, 17 Dec 2014 10:00:14 +0000 (11:00 +0100)
committerDaniel Mack <daniel@zonque.org>
Wed, 17 Dec 2014 10:00:14 +0000 (11:00 +0100)
Use 'u64' internally.

Signed-off-by: Daniel Mack <daniel@zonque.org>
connection.c
match.c
names.c

index 493bd9f256abc6b56a01a43ae53b1f9b1fff1d04..761a14aa1635fed2c9b0cee90ac4dfe000d46a95 100644 (file)
@@ -413,7 +413,7 @@ exit_unlock:
 static struct kdbus_conn_reply *
 kdbus_conn_reply_find(struct kdbus_conn *conn_replying,
                      struct kdbus_conn *conn_reply_dst,
-                     uint64_t cookie)
+                     u64 cookie)
 {
        struct kdbus_conn_reply *r, *reply = NULL;
 
diff --git a/match.c b/match.c
index a04e1daab5e596effc2ee9081327e526ca99ae19..a01546d51ec390a055c4710b7b61d872eeeed480 100644 (file)
--- a/match.c
+++ b/match.c
@@ -311,7 +311,7 @@ bool kdbus_match_db_match_kmsg(struct kdbus_match_db *mdb,
 }
 
 static int kdbus_match_db_remove_unlocked(struct kdbus_match_db *mdb,
-                                         uint64_t cookie)
+                                         u64 cookie)
 {
        struct kdbus_match_entry *entry, *tmp;
        bool found = false;
diff --git a/names.c b/names.c
index a51611f38fdf8e5901f72504c1ee2025200d86f2..6147dac2a6e05374806f5f184f2e9a547607b52c 100644 (file)
--- a/names.c
+++ b/names.c
@@ -722,9 +722,9 @@ static int kdbus_name_list_write(struct kdbus_conn *conn,
 
        /* fake the header of a kdbus_name item */
        struct {
-               __u64 size;
-               __u64 type;
-               __u64 flags;
+               u64 size;
+               u64 type;
+               u64 flags;
        } h = {};
 
        if (e && kdbus_ep_policy_check_see_access_unlocked(conn->ep, conn,