Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/netbsd32 fix error in previous; pointed out by an...



details:   https://anonhg.NetBSD.org/src/rev/e3d9c9ed1240
branches:  trunk
changeset: 520132:e3d9c9ed1240
user:      mrg <mrg%NetBSD.org@localhost>
date:      Thu Jan 03 15:28:13 2002 +0000

description:
fix error in previous; pointed out by andrew brown.

diffstat:

 sys/compat/netbsd32/netbsd32_ioctl.h |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (27 lines):

diff -r 09d38a98842c -r e3d9c9ed1240 sys/compat/netbsd32/netbsd32_ioctl.h
--- a/sys/compat/netbsd32/netbsd32_ioctl.h      Thu Jan 03 11:28:12 2002 +0000
+++ b/sys/compat/netbsd32/netbsd32_ioctl.h      Thu Jan 03 15:28:13 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_ioctl.h,v 1.8 2002/01/03 06:43:23 mrg Exp $   */
+/*     $NetBSD: netbsd32_ioctl.h,v 1.9 2002/01/03 15:28:13 mrg Exp $   */
 
 /*
  * Copyright (c) 1998, 2001 Matthew R. Green
@@ -30,7 +30,6 @@
 
 /* we define some handy macros here... */
 #define IOCTL_STRUCT_CONV_TO(cmd, type)        \
-       do { \
                size = IOCPARM_LEN(cmd); \
                if (size > sizeof(stkbuf)) \
                        data = memp = malloc(size, M_IOCTLOPS, M_WAITOK); \
@@ -41,8 +40,7 @@
                error = (*fp->f_ops->fo_ioctl)(fp, cmd, data, p); \
                __CONCAT(netbsd32_from_, type)((struct type *)data, \
                        (struct __CONCAT(netbsd32_, type) *)data32); \
-               break; \
-       } while (0)
+               break
  
 /* from <sys/audioio.h> */
 #if 0



Home | Main Index | Thread Index | Old Index