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/testmisc.c | |
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/testmisc.c')
-rw-r--r-- | share/examples/lkm/misc/test/testmisc.c | 6 |
1 files changed, 1 insertions, 5 deletions
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 - */ |