From f05428e4cd63dde97bac14b84dd146a5c00455e3 Mon Sep 17 00:00:00 2001 From: rgrimes Date: Tue, 30 May 1995 05:51:47 +0000 Subject: Remove trailing whitespace. --- libexec/rpc.rusersd/rusers_proc.c | 24 ++++++++++++------------ libexec/rpc.rusersd/rusersd.c | 10 +++++----- 2 files changed, 17 insertions(+), 17 deletions(-) (limited to 'libexec/rpc.rusersd') diff --git a/libexec/rpc.rusersd/rusers_proc.c b/libexec/rpc.rusersd/rusers_proc.c index 3a603c2..d472673 100644 --- a/libexec/rpc.rusersd/rusers_proc.c +++ b/libexec/rpc.rusersd/rusers_proc.c @@ -32,7 +32,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: rusers_proc.c,v 1.2 1994/11/04 02:12:49 jkh Exp $"; +static char rcsid[] = "$Id: rusers_proc.c,v 1.3 1994/11/18 23:36:18 ats Exp $"; #endif /* not lint */ #include @@ -146,7 +146,7 @@ getidle(char *tty, char *display) char devname[PATH_MAX]; time_t now; u_long idle; - + /* * If this is an X terminal or console, then try the * XIdle extension @@ -186,17 +186,17 @@ getidle(char *tty, char *display) return(idle); } - + static utmpidlearr * do_names_2(int all) { static utmpidlearr ut; struct utmp usr; int nusers = 0; - + bzero((char *)&ut, sizeof(ut)); ut.utmpidlearr_val = &utmp_idle[0]; - + ufp = fopen(_PATH_UTMP, "r"); if (!ufp) { syslog(LOG_ERR, "%m"); @@ -223,10 +223,10 @@ do_names_2(int all) strncpy(name[nusers], usr.ut_name, UT_NAMESIZE); utmp_idle[nusers].ui_utmp.ut_host = host[nusers]; strncpy(host[nusers], usr.ut_host, UT_HOSTSIZE); - + /* Make sure entries are NUL terminated */ - line[nusers][UT_LINESIZE] = - name[nusers][UT_NAMESIZE] = + line[nusers][UT_LINESIZE] = + name[nusers][UT_NAMESIZE] = host[nusers][UT_HOSTSIZE] = '\0'; nusers++; } @@ -270,9 +270,9 @@ do_names_1(int all) utmpidlearr *utidle; static utmparr ut; int i; - + bzero((char *)&ut, sizeof(ut)); - + utidle = do_names_2(all); if (utidle) { ut.utmparr_len = utidle->utmpidlearr_len; @@ -280,9 +280,9 @@ do_names_1(int all) for (i = 0; i < ut.utmparr_len; i++) bcopy(&utmp_idle[i].ui_utmp, &old_utmp[i], sizeof(old_utmp[0])); - + } - + return(&ut); } diff --git a/libexec/rpc.rusersd/rusersd.c b/libexec/rpc.rusersd/rusersd.c index d2a0d84..0182306 100644 --- a/libexec/rpc.rusersd/rusersd.c +++ b/libexec/rpc.rusersd/rusersd.c @@ -32,7 +32,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: rusersd.c,v 1.1.1.1 1994/08/28 14:53:45 csgr Exp $"; +static char rcsid[] = "$Id: rusersd.c,v 1.2 1994/11/18 22:40:11 ats Exp $"; #endif /* not lint */ #include @@ -64,7 +64,7 @@ main(argc, argv) int proto = 0; struct sockaddr_in from; int fromlen; - + /* * See if inetd started us */ @@ -74,7 +74,7 @@ main(argc, argv) sock = RPC_ANYSOCK; proto = IPPROTO_UDP; } - + if (!from_inetd) { daemon(0, 0); @@ -87,7 +87,7 @@ main(argc, argv) } openlog("rpc.rusersd", LOG_CONS|LOG_PID, LOG_DAEMON); - + transp = svcudp_create(sock); if (transp == NULL) { syslog(LOG_ERR, "cannot create udp service."); @@ -102,7 +102,7 @@ main(argc, argv) syslog(LOG_ERR, "unable to register (RUSERSPROG, RUSERSVERS_ORIG, %s).", proto?"udp":"(inetd)"); exit(1); } - + svc_run(); syslog(LOG_ERR, "svc_run returned"); exit(1); -- cgit v1.1