diff options
Diffstat (limited to 'share/examples')
-rw-r--r-- | share/examples/FreeBSD_version/FreeBSD_version.c | 2 | ||||
-rw-r--r-- | share/examples/lkm/misc/module/miscmod.c | 2 | ||||
-rw-r--r-- | share/examples/lkm/syscall/module/newsyscall.c | 2 | ||||
-rw-r--r-- | share/examples/sunrpc/dir/dir_proc.c | 2 | ||||
-rw-r--r-- | share/examples/sunrpc/dir/rls.c | 6 | ||||
-rw-r--r-- | share/examples/sunrpc/msg/msg_proc.c | 4 | ||||
-rw-r--r-- | share/examples/sunrpc/msg/printmsg.c | 2 | ||||
-rw-r--r-- | share/examples/sunrpc/msg/rprintmsg.c | 12 |
8 files changed, 16 insertions, 16 deletions
diff --git a/share/examples/FreeBSD_version/FreeBSD_version.c b/share/examples/FreeBSD_version/FreeBSD_version.c index e9d8c76..1d75897 100644 --- a/share/examples/FreeBSD_version/FreeBSD_version.c +++ b/share/examples/FreeBSD_version/FreeBSD_version.c @@ -6,7 +6,7 @@ #include <osreldate.h> /* and this works */ #endif -int main(void) { +int main(void) { extern int getosreldate(void); printf("Compilation release date: %d\n", __FreeBSD_version); #if __FreeBSD_version >= 199408 diff --git a/share/examples/lkm/misc/module/miscmod.c b/share/examples/lkm/misc/module/miscmod.c index 04aa07c..cc992aa 100644 --- a/share/examples/lkm/misc/module/miscmod.c +++ b/share/examples/lkm/misc/module/miscmod.c @@ -176,7 +176,7 @@ int cmd; * case it should return an errno from errno.h). */ miscmod( lkmtp, cmd, ver) -struct lkm_table *lkmtp; +struct lkm_table *lkmtp; int cmd; int ver; { diff --git a/share/examples/lkm/syscall/module/newsyscall.c b/share/examples/lkm/syscall/module/newsyscall.c index 5ae9e7d..3b690c2 100644 --- a/share/examples/lkm/syscall/module/newsyscall.c +++ b/share/examples/lkm/syscall/module/newsyscall.c @@ -102,7 +102,7 @@ int cmd; * case it should return an errno from errno.h). */ newsyscall( lkmtp, cmd, ver) -struct lkm_table *lkmtp; +struct lkm_table *lkmtp; int cmd; int ver; { diff --git a/share/examples/sunrpc/dir/dir_proc.c b/share/examples/sunrpc/dir/dir_proc.c index 9f7522a..46221a2 100644 --- a/share/examples/sunrpc/dir/dir_proc.c +++ b/share/examples/sunrpc/dir/dir_proc.c @@ -19,7 +19,7 @@ readdir_1(dirname) namelist nl; namelist *nlp; static readdir_res res; /* must be static! */ - + /* * Open directory */ diff --git a/share/examples/sunrpc/dir/rls.c b/share/examples/sunrpc/dir/rls.c index 4f2d473..aa7f79f 100644 --- a/share/examples/sunrpc/dir/rls.c +++ b/share/examples/sunrpc/dir/rls.c @@ -17,7 +17,7 @@ main(argc, argv) char *dir; readdir_res *result; namelist nl; - + if (argc != 3) { fprintf(stderr, "usage: %s host directory\n", argv[0]); @@ -44,14 +44,14 @@ main(argc, argv) clnt_pcreateerror(server); exit(1); } - + /* * Call the remote procedure "readdir" on the server */ result = readdir_1(&dir, cl); if (result == NULL) { /* - * An error occurred while calling the server. + * An error occurred while calling the server. * Print error message and die. */ clnt_perror(cl, server); diff --git a/share/examples/sunrpc/msg/msg_proc.c b/share/examples/sunrpc/msg/msg_proc.c index 80e5d95..96c1cb5 100644 --- a/share/examples/sunrpc/msg/msg_proc.c +++ b/share/examples/sunrpc/msg/msg_proc.c @@ -9,9 +9,9 @@ /* * Remote verson of "printmessage" */ -int * +int * printmessage_1(msg) - char **msg; + char **msg; { static int result; /* must be static! */ FILE *f; diff --git a/share/examples/sunrpc/msg/printmsg.c b/share/examples/sunrpc/msg/printmsg.c index dde55dd..f2d5285 100644 --- a/share/examples/sunrpc/msg/printmsg.c +++ b/share/examples/sunrpc/msg/printmsg.c @@ -20,7 +20,7 @@ main(argc, argv) fprintf(stderr, "%s: sorry, couldn't print your message\n", argv[0]); exit(1); - } + } printf("Message delivered!\n"); } diff --git a/share/examples/sunrpc/msg/rprintmsg.c b/share/examples/sunrpc/msg/rprintmsg.c index b9cb1e3..b9301de 100644 --- a/share/examples/sunrpc/msg/rprintmsg.c +++ b/share/examples/sunrpc/msg/rprintmsg.c @@ -40,14 +40,14 @@ main(argc, argv) clnt_pcreateerror(server); exit(1); } - + /* * Call the remote procedure "printmessage" on the server */ result = printmessage_1(&message, cl); if (result == NULL) { /* - * An error occurred while calling the server. + * An error occurred while calling the server. * Print error message and die. */ clnt_perror(cl, server); @@ -59,13 +59,13 @@ main(argc, argv) */ if (*result == 0) { /* - * Server was unable to print our message. + * Server was unable to print our message. * Print error message and die. */ - fprintf(stderr, "%s: sorry, %s couldn't print your message\n", - argv[0], server); + fprintf(stderr, "%s: sorry, %s couldn't print your message\n", + argv[0], server); exit(1); - } + } /* * The message got printed on the server's console |