diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2010-06-28 17:59:45 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2010-06-28 17:59:45 +0000 |
commit | dc2db34f422305e2572a2e028c315a5001c3fb5d (patch) | |
tree | 2823bc83dc09e5a27ff5b923116139e8249284ad /sys/sys/sysent.h | |
parent | b2488fc1598ebb3b094546f46c477f5a8813c521 (diff) | |
download | src-dc2db34f422305e2572a2e028c315a5001c3fb5d.tar.gz src-dc2db34f422305e2572a2e028c315a5001c3fb5d.zip |
Use C99 initializers for the struct sysent generated by MAKE_SYSENT().
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=209578
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 b34d2cd81ca1..99e44a0d44ab 100644 --- a/sys/sys/sysent.h +++ b/sys/sys/sysent.h @@ -144,10 +144,10 @@ struct syscall_module_data { #define MAKE_SYSENT(syscallname) \ static struct sysent syscallname##_sysent = { \ - (sizeof(struct syscallname ## _args ) \ + .sy_narg = (sizeof(struct syscallname ## _args ) \ / sizeof(register_t)), \ - (sy_call_t *)& syscallname, \ - SYS_AUE_##syscallname \ + .sy_call = (sy_call_t *)& syscallname, \ + .sy_auevent = SYS_AUE_##syscallname, \ } #define SYSCALL_MODULE(name, offset, new_sysent, evh, arg) \ |