From 9f7484a69ff39a67cfa84c05e263273ea2888fae Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 13 Nov 2009 22:10:10 +0000 Subject: C statements (including macros) that do not end in a ; are obtuse. The do { } while structure in lkm.h was added on purpose. Adjust the samples discussed with miod and millert; ok millert --- 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 7a5cb73a396..c3026269c0a 100644 --- a/share/lkm/misc/module/miscmod.c +++ b/share/lkm/misc/module/miscmod.c @@ -1,4 +1,4 @@ -/* $OpenBSD: miscmod.c,v 1.4 2008/08/03 21:31:53 kettenis Exp $ */ +/* $OpenBSD: miscmod.c,v 1.5 2009/11/13 22:10:06 deraadt Exp $ */ /* * Makefile for miscmod * @@ -179,7 +179,7 @@ struct lkm_table *lkmtp; int cmd; int ver; { - DISPATCH(lkmtp,cmd,ver,miscmod_handle,miscmod_handle,lkm_nofunc) + DISPATCH(lkmtp,cmd,ver,miscmod_handle,miscmod_handle,lkm_nofunc); } diff --git a/share/lkm/syscall/module/newsyscall.c b/share/lkm/syscall/module/newsyscall.c index ad991d333aa..b4b6a9c0ace 100644 --- a/share/lkm/syscall/module/newsyscall.c +++ b/share/lkm/syscall/module/newsyscall.c @@ -1,4 +1,4 @@ -/* $OpenBSD: newsyscall.c,v 1.3 2008/08/03 21:31:53 kettenis Exp $ */ +/* $OpenBSD: newsyscall.c,v 1.4 2009/11/13 22:10:09 deraadt Exp $ */ /* * Makefile for newsyscall * @@ -105,7 +105,7 @@ struct lkm_table *lkmtp; int cmd; int ver; { - DISPATCH(lkmtp,cmd,ver,newsyscall_load,lkm_nofunc,lkm_nofunc) + DISPATCH(lkmtp,cmd,ver,newsyscall_load,lkm_nofunc,lkm_nofunc); } -- cgit v1.2.3