diff options
author | Robbie Harwood <rharwood@redhat.com> | 2017-04-06 14:36:05 -0400 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2017-04-14 12:02:54 -0400 |
commit | 53f0eed03a54c8a4a97bb0599b643f68fca06c48 (patch) | |
tree | 4eca7023d115d7559450131d9d854e73ca490115 /src/slave | |
parent | fb51f82a4377503c3eabe2c497f4653d0bb11ba9 (diff) | |
download | krb5-53f0eed03a54c8a4a97bb0599b643f68fca06c48.zip krb5-53f0eed03a54c8a4a97bb0599b643f68fca06c48.tar.gz krb5-53f0eed03a54c8a4a97bb0599b643f68fca06c48.tar.bz2 |
Remove use of caddr_t in kpropd.c
Diffstat (limited to 'src/slave')
-rw-r--r-- | src/slave/kpropd.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/slave/kpropd.c b/src/slave/kpropd.c index 056c31a..996f8df 100644 --- a/src/slave/kpropd.c +++ b/src/slave/kpropd.c @@ -483,8 +483,7 @@ doit(int fd) perror("getpeername"); exit(1); } - if (setsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, (caddr_t) &on, - sizeof(on)) < 0) { + if (setsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, &on, sizeof(on)) < 0) { com_err(progname, errno, _("while attempting setsockopt (SO_KEEPALIVE)")); } @@ -589,13 +588,12 @@ full_resync(CLIENT *clnt) memset(&clnt_res, 0, sizeof(clnt_res)); status = clnt_call(clnt, IPROP_FULL_RESYNC_EXT, (xdrproc_t)xdr_u_int32, - (caddr_t)&vers, (xdrproc_t)xdr_kdb_fullresync_result_t, - (caddr_t)&clnt_res, full_resync_timeout); + &vers, (xdrproc_t)xdr_kdb_fullresync_result_t, + &clnt_res, full_resync_timeout); if (status == RPC_PROCUNAVAIL) { status = clnt_call(clnt, IPROP_FULL_RESYNC, (xdrproc_t)xdr_void, - (caddr_t *)&vers, - (xdrproc_t)xdr_kdb_fullresync_result_t, - (caddr_t)&clnt_res, full_resync_timeout); + &vers, (xdrproc_t)xdr_kdb_fullresync_result_t, + &clnt_res, full_resync_timeout); } return (status == RPC_SUCCESS) ? &clnt_res : NULL; |