From e505cf2c36bea778e0c791f8b66b58715a261aa6 Mon Sep 17 00:00:00 2001 From: kib Date: Tue, 29 Jun 2010 14:31:49 +0000 Subject: [PATCH] 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) --- sys/sys/sysent.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/sys/sysent.h b/sys/sys/sysent.h index 641bdae58d49..4754f54a4835 100644 --- a/sys/sys/sysent.h +++ b/sys/sys/sysent.h @@ -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) \