diff options
author | kib <kib@FreeBSD.org> | 2010-06-28 17:59:45 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2010-06-28 17:59:45 +0000 |
commit | 2774f04de78aab6af0f10e1129f45bf8be19aae5 (patch) | |
tree | 2823bc83dc09e5a27ff5b923116139e8249284ad /sys/sys/sysent.h | |
parent | f818dc9368ead3a52cc53e5347ac177c6c082775 (diff) | |
download | FreeBSD-src-2774f04de78aab6af0f10e1129f45bf8be19aae5.zip FreeBSD-src-2774f04de78aab6af0f10e1129f45bf8be19aae5.tar.gz |
Use C99 initializers for the struct sysent generated by MAKE_SYSENT().
MFC after: 1 week
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 b34d2cd..99e44a0 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) \ |