summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorEitan Adler <eadler@FreeBSD.org>2018-06-25 11:44:56 +0000
committerEitan Adler <eadler@FreeBSD.org>2018-06-25 11:44:56 +0000
commitb1ba4c4472e907fc2858f582594d71242c852721 (patch)
tree01a24bb7a403d41a9f2f203a1483e3f5aeb21a4f /usr.bin
parent7f08b09a0eb33ea585604af3210f9103ffcdab9f (diff)
downloadsrc-test2-b1ba4c4472e907fc2858f582594d71242c852721.tar.gz
src-test2-b1ba4c4472e907fc2858f582594d71242c852721.zip
Notes
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/rusers/rusers.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/rusers/rusers.c b/usr.bin/rusers/rusers.c
index 381d935611b1..838e231ca02a 100644
--- a/usr.bin/rusers/rusers.c
+++ b/usr.bin/rusers/rusers.c
@@ -94,9 +94,9 @@ remember_host(struct in_addr addr)
}
static int
-rusers_reply(caddr_t replyp, struct sockaddr_in *raddrp)
+rusers_reply(void *replyp, struct sockaddr_in *raddrp)
{
- u_int x;
+ unsigned int x;
int idle;
char date[32], idle_time[64], remote[64];
struct hostent *hp;
@@ -190,14 +190,14 @@ onehost(char *host)
if (rusers_clnt == NULL)
errx(1, "%s", clnt_spcreateerror(""));
- bzero((char *)&up, sizeof(up));
+ memset(&up, 0, sizeof(up));
tv.tv_sec = 15; /* XXX ?? */
tv.tv_usec = 0;
if (clnt_call(rusers_clnt, RUSERSPROC_NAMES, (xdrproc_t)xdr_void, NULL,
(xdrproc_t)xdr_utmpidlearr, &up, tv) != RPC_SUCCESS)
errx(1, "%s", clnt_sperror(rusers_clnt, ""));
memcpy(&addr.sin_addr.s_addr, hp->h_addr, sizeof(addr.sin_addr.s_addr));
- rusers_reply((caddr_t)&up, &addr);
+ rusers_reply(&up, &addr);
clnt_destroy(rusers_clnt);
}
@@ -207,7 +207,7 @@ allhosts(void)
utmpidlearr up;
enum clnt_stat clnt_stat;
- bzero((char *)&up, sizeof(up));
+ memset(&up, 0, sizeof(up));
clnt_stat = clnt_broadcast(RUSERSPROG, RUSERSVERS_IDLE,
RUSERSPROC_NAMES, (xdrproc_t)xdr_void, NULL,
(xdrproc_t)xdr_utmpidlearr, (char *)&up,