diff options
author | kib <kib@FreeBSD.org> | 2010-06-29 14:31:49 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2010-06-29 14:31:49 +0000 |
commit | e505cf2c36bea778e0c791f8b66b58715a261aa6 (patch) | |
tree | 65bd540620023cecb4b7a3c7337c90298070a86d /sys/sys/sysent.h | |
parent | 93e0327a90dc02fd0242bd342897292a8f275f4f (diff) | |
download | FreeBSD-src-e505cf2c36bea778e0c791f8b66b58715a261aa6.zip FreeBSD-src-e505cf2c36bea778e0c791f8b66b58715a261aa6.tar.gz |
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)
Diffstat (limited to 'sys/sys/sysent.h')
-rw-r--r-- | sys/sys/sysent.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/sys/sysent.h b/sys/sys/sysent.h index 641bdae..4754f54 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) \ |