diff options
author | rgrimes <rgrimes@FreeBSD.org> | 1995-05-30 06:41:30 +0000 |
---|---|---|
committer | rgrimes <rgrimes@FreeBSD.org> | 1995-05-30 06:41:30 +0000 |
commit | a14d555c873398b14776ca4f2c33f9c69617afb9 (patch) | |
tree | 350f6f98843363254f9afe467ae0c92d5a9d7f43 /usr.bin/rusers/rusers.c | |
parent | f3a2b348daf9fa6063c38d2d69563f732a2f80e7 (diff) | |
download | FreeBSD-src-a14d555c873398b14776ca4f2c33f9c69617afb9.zip FreeBSD-src-a14d555c873398b14776ca4f2c33f9c69617afb9.tar.gz |
Remove trailing whitespace.
Diffstat (limited to 'usr.bin/rusers/rusers.c')
-rw-r--r-- | usr.bin/rusers/rusers.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/usr.bin/rusers/rusers.c b/usr.bin/rusers/rusers.c index 0346601..9c72342 100644 --- a/usr.bin/rusers/rusers.c +++ b/usr.bin/rusers/rusers.c @@ -32,7 +32,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: rusers.c,v 1.1 1993/09/16 01:15:48 jtc Exp $"; +static char rcsid[] = "$Id: rusers.c,v 1.1.1.1 1994/08/28 15:06:02 csgr Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -61,7 +61,7 @@ struct host_list { int search_host(struct in_addr addr) { struct host_list *hp; - + if (!hosts) return(0); @@ -93,23 +93,23 @@ rusers_reply(char *replyp, struct sockaddr_in *raddrp) utmpidlearr *up = (utmpidlearr *)replyp; char *host; int days, hours, minutes, seconds; - + if (search_host(raddrp->sin_addr)) return(0); if (!allopt && !up->utmpidlearr_len) return(0); - + hp = gethostbyaddr((char *)&raddrp->sin_addr.s_addr, sizeof(struct in_addr), AF_INET); if (hp) host = hp->h_name; else host = inet_ntoa(raddrp->sin_addr); - + if (!longopt) printf("%-*s ", HOST_WIDTH, host); - + for (x = 0; x < up->utmpidlearr_len; x++) { strncpy(date, &(ctime((time_t *)&(up->utmpidlearr_val[x].ui_utmp.ut_time))[4]), @@ -159,7 +159,7 @@ rusers_reply(char *replyp, struct sockaddr_in *raddrp) } if (!longopt) putchar('\n'); - + remember_host(raddrp->sin_addr); return(0); } @@ -170,7 +170,7 @@ onehost(char *host) CLIENT *rusers_clnt; struct sockaddr_in addr; struct hostent *hp; - + hp = gethostbyname(host); if (hp == NULL) { fprintf(stderr, "%s: unknown host \"%s\"\n", @@ -218,7 +218,7 @@ main(int argc, char *argv[]) { int ch; extern int optind; - + if (!(argv0 = rindex(argv[0], '/'))) argv0 = argv[0]; else |