From c5567c4275c850afa4ebc14e6336c90d9d01e1ea Mon Sep 17 00:00:00 2001 From: kettenis Date: Sun, 3 Aug 2008 21:31:53 +0000 Subject: [PATCH] Adjust for change in 'struct sysent'. From Alexander Holupirek. Fixes PR 5898. --- share/lkm/misc/module/miscmod.c | 4 ++-- share/lkm/syscall/module/newsyscall.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/share/lkm/misc/module/miscmod.c b/share/lkm/misc/module/miscmod.c index 067777238c4..7a5cb73a396 100644 --- a/share/lkm/misc/module/miscmod.c +++ b/share/lkm/misc/module/miscmod.c @@ -1,4 +1,4 @@ -/* $OpenBSD: miscmod.c,v 1.3 2000/03/02 14:46:36 todd Exp $ */ +/* $OpenBSD: miscmod.c,v 1.4 2008/08/03 21:31:53 kettenis Exp $ */ /* * Makefile for miscmod * @@ -55,7 +55,7 @@ extern int misccall(); * have 0 arguments to our system call. */ static struct sysent newent = { - 0, 0, misccall /* # of args, args size, fn pointer*/ + 0, 0, 0, misccall /* # of args, args size, flags, fn pointer*/ }; /* diff --git a/share/lkm/syscall/module/newsyscall.c b/share/lkm/syscall/module/newsyscall.c index 20785677f90..ad991d333aa 100644 --- a/share/lkm/syscall/module/newsyscall.c +++ b/share/lkm/syscall/module/newsyscall.c @@ -1,4 +1,4 @@ -/* $OpenBSD: newsyscall.c,v 1.2 2000/03/02 14:46:38 todd Exp $ */ +/* $OpenBSD: newsyscall.c,v 1.3 2008/08/03 21:31:53 kettenis Exp $ */ /* * Makefile for newsyscall * @@ -54,7 +54,7 @@ extern int mycall(); * have 0 arguments to our system call. */ static struct sysent newent = { - 0, 0, mycall /* # of args, args size, fn. pointer */ + 0, 0, 0, mycall /* # of args, args size, flags, fn. pointer */ }; MOD_SYSCALL( "newsyscall", -1, &newent) -- 2.20.1