summaryrefslogtreecommitdiff
path: root/libexec/rpc.rusersd/rusers_proc.c
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1997-07-09 15:56:20 +0000
committerkstailey <kstailey@cvs.openbsd.org>1997-07-09 15:56:20 +0000
commit9a5ff8763e1063815314f5967b155250fd208eec (patch)
tree72f919baac58056005e6eb92a1795a2938ab38fb /libexec/rpc.rusersd/rusers_proc.c
parentc23df527ef17a90c32d0c5a4f395f357f8ded036 (diff)
Use syslog(3), not fprintf(3) for error messages.
OSF is not the only OS that uses USER_PROCESS in ut_type.
Diffstat (limited to 'libexec/rpc.rusersd/rusers_proc.c')
-rw-r--r--libexec/rpc.rusersd/rusers_proc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libexec/rpc.rusersd/rusers_proc.c b/libexec/rpc.rusersd/rusers_proc.c
index 78d8a67d287..13d12b4e01e 100644
--- a/libexec/rpc.rusersd/rusers_proc.c
+++ b/libexec/rpc.rusersd/rusers_proc.c
@@ -27,7 +27,7 @@
*/
#ifndef lint
-static char rcsid[] = "$Id: rusers_proc.c,v 1.4 1997/02/13 06:22:42 millert Exp $";
+static char rcsid[] = "$Id: rusers_proc.c,v 1.5 1997/07/09 15:56:19 kstailey Exp $";
#endif /* not lint */
#include <signal.h>
@@ -205,7 +205,7 @@ rusers_num_svc(arg, rqstp)
if (*usr.ut_name && *usr.ut_line &&
strncmp(usr.ut_name, IGNOREUSER,
sizeof(usr.ut_name))
-#ifdef OSF
+#ifdef USER_PROCESS
&& usr.ut_type == USER_PROCESS
#endif
) {
@@ -238,7 +238,7 @@ do_names_3(int all)
if (*usr.ut_name && *usr.ut_line &&
strncmp(usr.ut_name, IGNOREUSER,
sizeof(usr.ut_name))
-#ifdef OSF
+#ifdef USER_PROCESS
&& usr.ut_type == USER_PROCESS
#endif
) {
@@ -300,7 +300,7 @@ do_names_2(int all)
if (*usr.ut_name && *usr.ut_line &&
strncmp(usr.ut_name, IGNOREUSER,
sizeof(usr.ut_name))
-#ifdef OSF
+#ifdef USER_PROCESS
&& usr.ut_type == USER_PROCESS
#endif
) {
@@ -362,7 +362,7 @@ do_names_1(int all)
if (*usr.ut_name && *usr.ut_line &&
strncmp(usr.ut_name, IGNOREUSER,
sizeof(usr.ut_name))
-#ifdef OSF
+#ifdef USER_PROCESS
&& usr.ut_type == USER_PROCESS
#endif
) {
@@ -502,7 +502,7 @@ rusers_service(rqstp, transp)
svcerr_systemerr(transp);
}
if (!svc_freeargs(transp, xdr_argument, (caddr_t)&argument)) {
- (void)fprintf(stderr, "unable to free arguments\n");
+ syslog(LOG_ERR, "unable to free arguments");
exit(1);
}
leave: