diff options
author | Bruce Evans <bde@FreeBSD.org> | 1995-12-25 07:19:32 +0000 |
---|---|---|
committer | Bruce Evans <bde@FreeBSD.org> | 1995-12-25 07:19:32 +0000 |
commit | 9463bb149abae122a2b9d1f455d7ef86fed28d6c (patch) | |
tree | 87b8649103817b6ed4829289274a9483a44cc427 /share/examples/lkm/misc/test | |
parent | 9e4b2b92b8860e1289dc06bac04c601fc2bb9c1f (diff) |
Updated lkm examples to work with prototype-related changes to the
MOD_MISC() and DISPATCH() macros.
Renamed new_syscall module as new_syscall_mod. It seems to be standard
to have module names ending with _mod, and this may be forced when
MOD_SYSCALL() and MOD_VFS() are updated to match MOD_MISC().
Cleaned up lkm examples a little.
Notes
Notes:
svn path=/head/; revision=13011
Diffstat (limited to 'share/examples/lkm/misc/test')
-rw-r--r-- | share/examples/lkm/misc/test/Makefile | 6 | ||||
-rw-r--r-- | share/examples/lkm/misc/test/testmisc.c | 6 |
2 files changed, 2 insertions, 10 deletions
diff --git a/share/examples/lkm/misc/test/Makefile b/share/examples/lkm/misc/test/Makefile index 61bbf372708b..4ea3a98053c6 100644 --- a/share/examples/lkm/misc/test/Makefile +++ b/share/examples/lkm/misc/test/Makefile @@ -34,7 +34,7 @@ # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $Id$ +# $Id: Makefile,v 1.2 1995/07/27 09:45:26 joerg Exp $ # PROG= testmisc NOMAN= @@ -63,7 +63,3 @@ unload: ${MODSTAT} -n misc_mod .include <bsd.prog.mk> - -# -# EOF -- This file has not been truncated. -# diff --git a/share/examples/lkm/misc/test/testmisc.c b/share/examples/lkm/misc/test/testmisc.c index 83f333817fc0..b4d6eeb4f899 100644 --- a/share/examples/lkm/misc/test/testmisc.c +++ b/share/examples/lkm/misc/test/testmisc.c @@ -47,7 +47,7 @@ main() printf( "Table offset as reported by modstat: "); fflush( stdout); - if( fgets( buf, 80, stdin) == NULL) { + if( fgets( buf, sizeof buf, stdin) == NULL) { printf( "[ABORT]\n"); exit( 1); } @@ -57,7 +57,3 @@ main() exit( err); } - -/* - * EOF -- This file has not been truncated - */ |