Date: Tue, 29 Jun 2010 14:31:49 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r209587 - head/sys/sys Message-ID: <201006291431.o5TEVoc9049495@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Tue Jun 29 14:31:49 2010 New Revision: 209587 URL: http://svn.freebsd.org/changeset/base/209587 Log: Revert r209578: Use C99 initializers for the struct sysent generated by MAKE_SYSENT(). C++ does not have designator-initializer facility of C99, not using this in the header makes us friendly to C++ kernel modules, whoever wants such schism. Requested by: mdf MFC after: 6 days (not really) Modified: head/sys/sys/sysent.h Modified: head/sys/sys/sysent.h ============================================================================== --- head/sys/sys/sysent.h Tue Jun 29 10:21:34 2010 (r209586) +++ head/sys/sys/sysent.h Tue Jun 29 14:31:49 2010 (r209587) @@ -151,10 +151,10 @@ struct syscall_module_data { #define MAKE_SYSENT(syscallname) \ static struct sysent syscallname##_sysent = { \ - .sy_narg = (sizeof(struct syscallname ## _args ) \ + (sizeof(struct syscallname ## _args ) \ / sizeof(register_t)), \ - .sy_call = (sy_call_t *)& syscallname, \ - .sy_auevent = SYS_AUE_##syscallname, \ + (sy_call_t *)& syscallname, \ + SYS_AUE_##syscallname \ } #define SYSCALL_MODULE(name, offset, new_sysent, evh, arg) \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006291431.o5TEVoc9049495>