summaryrefslogtreecommitdiffstats
path: root/share/examples/sunrpc/msg/msg_proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'share/examples/sunrpc/msg/msg_proc.c')
-rw-r--r--share/examples/sunrpc/msg/msg_proc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/share/examples/sunrpc/msg/msg_proc.c b/share/examples/sunrpc/msg/msg_proc.c
index 96c1cb5..ed08883 100644
--- a/share/examples/sunrpc/msg/msg_proc.c
+++ b/share/examples/sunrpc/msg/msg_proc.c
@@ -1,7 +1,9 @@
/* @(#)msg_proc.c 2.1 88/08/11 4.0 RPCSRC */
+/* $FreeBSD$ */
/*
* msg_proc.c: implementation of the remote procedure "printmessage"
*/
+#include <paths.h>
#include <stdio.h>
#include <rpc/rpc.h> /* always need this here */
#include "msg.h" /* need this too: msg.h will be generated by rpcgen */
@@ -16,7 +18,7 @@ printmessage_1(msg)
static int result; /* must be static! */
FILE *f;
- f = fopen("/dev/console", "w");
+ f = fopen(_PATH_CONSOLE, "w");
if (f == NULL) {
result = 0;
return (&result);
OpenPOWER on IntegriCloud