diff options
Diffstat (limited to 'share/examples/sunrpc/msg')
-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 |
3 files changed, 9 insertions, 9 deletions
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 |