Date: Wed, 21 Jan 2009 18:38:13 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org Subject: svn commit: r187555 - in stable/7/sys: . contrib/pf dev/cxgb sys Message-ID: <200901211838.n0LIcDEs086718@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jhb Date: Wed Jan 21 18:38:12 2009 New Revision: 187555 URL: http://svn.freebsd.org/changeset/base/187555 Log: MFC: Use ints and a pointer to represent the spare fields used by the old sigevent structure rather than using a char array with explicit knowledge about padding. Modified: stable/7/sys/ (props changed) stable/7/sys/contrib/pf/ (props changed) stable/7/sys/dev/cxgb/ (props changed) stable/7/sys/sys/aio.h Modified: stable/7/sys/sys/aio.h ============================================================================== --- stable/7/sys/sys/aio.h Wed Jan 21 18:35:48 2009 (r187554) +++ stable/7/sys/sys/aio.h Wed Jan 21 18:38:12 2009 (r187555) @@ -69,7 +69,8 @@ typedef struct aiocb { off_t aio_offset; /* File offset for I/O */ volatile void *aio_buf; /* I/O buffer in process space */ size_t aio_nbytes; /* Number of bytes for I/O */ - char __spare__[sizeof(int) * 2 + sizeof(void *)]; /* osigevent. */ + int __spare__[2]; + void *__spare2__; int aio_lio_opcode; /* LIO opcode */ int aio_reqprio; /* Request priority -- ignored */ struct __aiocb_private _aiocb_private;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901211838.n0LIcDEs086718>