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:
3407630
)
(xdrmem_create): Add cast for *_ops array since we cannot declare the
author
drepper
<drepper>
Fri, 5 Jun 1998 20:58:13 +0000
(20:58 +0000)
committer
drepper
<drepper>
Fri, 5 Jun 1998 20:58:13 +0000
(20:58 +0000)
struct element as const.
sunrpc/xdr_mem.c
patch
|
blob
|
history
diff --git
a/sunrpc/xdr_mem.c
b/sunrpc/xdr_mem.c
index
028329c
..
47b87ea
100644
(file)
--- a/
sunrpc/xdr_mem.c
+++ b/
sunrpc/xdr_mem.c
@@
-80,7
+80,9
@@
xdrmem_create (xdrs, addr, size, op)
{
xdrs->x_op = op;
- xdrs->x_ops = &xdrmem_ops;
+ /* We have to add the const since the `struct xdr_ops' in `struct XDR'
+ is not `const'. */
+ xdrs->x_ops = (struct xdr_ops *) &xdrmem_ops;
xdrs->x_private = xdrs->x_base = addr;
xdrs->x_handy = size;
}