projects
/
kopensolaris-gnu
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
600e104
)
(xdrrec_create): Add cast for *_ops array since we cannot declare the
author
drepper
<drepper>
Fri, 5 Jun 1998 20:58:26 +0000
(20:58 +0000)
committer
drepper
<drepper>
Fri, 5 Jun 1998 20:58:26 +0000
(20:58 +0000)
struct element as const.
sunrpc/xdr_rec.c
patch
|
blob
|
history
diff --git
a/sunrpc/xdr_rec.c
b/sunrpc/xdr_rec.c
index
f855b3d
..
a4e28b0
100644
(file)
--- a/
sunrpc/xdr_rec.c
+++ b/
sunrpc/xdr_rec.c
@@
-169,7
+169,9
@@
xdrrec_create (XDR *xdrs, u_int sendsize,
/*
* now the rest ...
*/
- xdrs->x_ops = &xdrrec_ops;
+ /* We have to add the const since the `struct xdr_ops' in `struct XDR'
+ is not `const'. */
+ xdrs->x_ops = (struct xdr_ops *) &xdrrec_ops;
xdrs->x_private = (caddr_t) rstrm;
rstrm->tcp_handle = tcp_handle;
rstrm->readit = readit;