about summary refs log tree commit diff
path: root/sysdeps/mach/hurd/ioctl.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2005-10-23 00:43:15 +0000
committerRoland McGrath <roland@gnu.org>2005-10-23 00:43:15 +0000
commit4e4c417b181ae21e3dcc80bce2819f3cebf2615a (patch)
treed2460e008c6d9e8691149466a3a241e68e84b762 /sysdeps/mach/hurd/ioctl.c
parent6738b11d46ef46407f454cb92780d1d973109d66 (diff)
downloadglibc-4e4c417b181ae21e3dcc80bce2819f3cebf2615a.tar.gz
glibc-4e4c417b181ae21e3dcc80bce2819f3cebf2615a.tar.xz
glibc-4e4c417b181ae21e3dcc80bce2819f3cebf2615a.zip
[BZ #1252]
2005-10-17  Thomas Schwinge  <tschwinge@gnu.org>
	[BZ #1252]
	* hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Don't use ?: as lvalue.
	* sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
Diffstat (limited to 'sysdeps/mach/hurd/ioctl.c')
-rw-r--r--sysdeps/mach/hurd/ioctl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sysdeps/mach/hurd/ioctl.c b/sysdeps/mach/hurd/ioctl.c
index 3d590d5845..b5e04f49d8 100644
--- a/sysdeps/mach/hurd/ioctl.c
+++ b/sysdeps/mach/hurd/ioctl.c
@@ -136,9 +136,11 @@ __ioctl (int fd, unsigned long int request, ...)
 	     Rather than pointing to the value, ARG is the value itself.  */
 #ifdef MACH_MSG_TYPE_BIT
 	  *t++ = io2mach_type (1, _IOTS (integer_t));
-	  *((integer_t *) t)++ = (integer_t) arg;
+	  *(integer_t *) t = (integer_t) arg;
+	  t = (void *) t + sizeof (integer_t);
 #else
-	  *((integer_t *) p)++ = (integer_t) arg;
+	  *(integer_t *) p = (integer_t) arg;
+	  p = (void *) p + sizeof (integer_t);
 #endif
 	}