aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorFernando ApesteguĂ­a <fernape@FreeBSD.org>2021-05-27 12:09:39 +0000
committerFernando ApesteguĂ­a <fernape@FreeBSD.org>2021-06-09 10:24:26 +0000
commitdc318a4ffabcbfa23bb56a33403aad36e6de30af (patch)
treef92f59343e10a7a870ee8f442075f664d896f519 /share
parentffc5dc788f05dec5fd11aff8f216c37cd56fcd7f (diff)
downloadsrc-dc318a4ffabcbfa23bb56a33403aad36e6de30af.tar.gz
src-dc318a4ffabcbfa23bb56a33403aad36e6de30af.zip
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')
-rw-r--r--share/examples/kld/syscall/module/syscall.c4
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
};
/*