diff options
author | Karl Ramm <kcr@1ts.org> | 2011-02-02 05:26:26 +0000 |
---|---|---|
committer | Karl Ramm <kcr@1ts.org> | 2011-02-02 05:26:26 +0000 |
commit | 71928f99ec3b0f5984d83438da266c7ef97afb5a (patch) | |
tree | dd57f77793dc4495dd085d0342ceef599f53b81a /server/kstuff.c | |
parent | b24cbe87f78de4fda81ed0fc5502275e77d51a28 (diff) |
It is still not the 80s anymore -- remove all caddr_ts
Diffstat (limited to 'server/kstuff.c')
-rw-r--r-- | server/kstuff.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/kstuff.c b/server/kstuff.c index 5f9cc4f..0743ece 100644 --- a/server/kstuff.c +++ b/server/kstuff.c @@ -69,7 +69,7 @@ GetKerberosData(int fd, /* file descr. to read from */ return(KFAILURE); } for (i=0; i<ticket.length; i++) { - if (read(fd, (caddr_t) &(ticket.dat[i]), 1) != 1) { + if (read(fd, &ticket.dat[i], 1) != 1) { syslog(LOG_WARNING,"bad tkt read"); return(KFAILURE); } @@ -116,7 +116,7 @@ SendKerberosData(int fd, /* file descriptor to write onto */ size_to_write = strlen (p); if ((written = write(fd, p, size_to_write)) != size_to_write) return (written < 0) ? errno : ZSRV_PKSHORT; - if ((written = write(fd, (caddr_t) (ticket->dat), ticket->length)) + if ((written = write(fd, ticket->dat, ticket->length)) != ticket->length) return (written < 0) ? errno : ZSRV_PKSHORT; |