diff options
author | Fernando ApesteguĂa <fernape@FreeBSD.org> | 2021-05-27 12:09:39 +0000 |
---|---|---|
committer | Fernando ApesteguĂa <fernape@FreeBSD.org> | 2021-06-09 10:24:26 +0000 |
commit | dc318a4ffabcbfa23bb56a33403aad36e6de30af (patch) | |
tree | f92f59343e10a7a870ee8f442075f664d896f519 /share/examples/kld/syscall/module | |
parent | ffc5dc788f05dec5fd11aff8f216c37cd56fcd7f (diff) |
Fix syscall kld example
PR: 255936
Reported by: splitface@mailfence.com
Approved by: gbe (mentor), imp@, jilles@
Differential Revision: https://reviews.freebsd.org/D30498
Diffstat (limited to 'share/examples/kld/syscall/module')
-rw-r--r-- | share/examples/kld/syscall/module/syscall.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/examples/kld/syscall/module/syscall.c b/share/examples/kld/syscall/module/syscall.c index 701e2492884c..1ee533005b85 100644 --- a/share/examples/kld/syscall/module/syscall.c +++ b/share/examples/kld/syscall/module/syscall.c @@ -51,8 +51,8 @@ hello(struct thread *td, void *arg) * The `sysent' for the new syscall */ static struct sysent hello_sysent = { - 0, /* sy_narg */ - hello /* sy_call */ + .sy_narg = 0, + .sy_call = hello }; /* |