From 9463bb149abae122a2b9d1f455d7ef86fed28d6c Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Mon, 25 Dec 1995 07:19:32 +0000 Subject: 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. --- share/examples/lkm/misc/test/testmisc.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'share/examples/lkm/misc/test/testmisc.c') 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 - */ -- cgit v1.2.3