diff options
author | Marc-Antoine Perennou <Marc-Antoine@Perennou.com> | 2013-07-21 14:33:53 +0200 |
---|---|---|
committer | Marc-Antoine Perennou <Marc-Antoine@Perennou.com> | 2013-07-21 14:36:23 +0200 |
commit | f107d0501ea3d8c3b62661b23488b337edefeeb9 (patch) | |
tree | 9c50502ac9355d9ada07ae161e99141542c589a6 | |
parent | e16fb2ffff87b119bb3645228b2915f127242da4 (diff) | |
download | kdbus-bus-f107d0501ea3d8c3b62661b23488b337edefeeb9.tar.gz kdbus-bus-f107d0501ea3d8c3b62661b23488b337edefeeb9.tar.bz2 kdbus-bus-f107d0501ea3d8c3b62661b23488b337edefeeb9.zip |
connection: fix build with CONFIG_UIDGID_STRICT_TYPE_CHECKS=y
connection.c: In function ‘kdbus_conn_ioctl_control’:
connection.c:1047:8: error: incompatible types when assigning to type ‘gid_t’ from type ‘kgid_t’
connection.c:1051:9: error: incompatible type for argument 5 of ‘kdbus_bus_new’
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
-rw-r--r-- | connection.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/connection.c b/connection.c index 618d1ec7ee7..9412db02de1 100644 --- a/connection.c +++ b/connection.c @@ -1024,7 +1024,7 @@ static long kdbus_conn_ioctl_control(struct file *file, unsigned int cmd, switch (cmd) { case KDBUS_CMD_BUS_MAKE: { - gid_t gid = 0; + kgid_t gid = KGIDT_INIT(0); if (!KDBUS_IS_ALIGNED8((uintptr_t)buf)) { ret = -EFAULT; @@ -1121,7 +1121,7 @@ static long kdbus_conn_ioctl_ep(struct file *file, unsigned int cmd, switch (cmd) { case KDBUS_CMD_EP_MAKE: { umode_t mode = 0; - gid_t gid = 0; + kgid_t gid = KGIDT_INIT(0); if (!KDBUS_IS_ALIGNED8((uintptr_t)buf)) { ret = -EFAULT; |