git.annexia.org
/
portablexdr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b839b3
)
* rpc/xdr.h (XDR_INLINE): Cast result to (void*), to avoid warnings,
author
Jim Meyering
<meyering@redhat.com>
Wed, 29 Oct 2008 13:48:37 +0000
(14:48 +0100)
committer
Jim Meyering
<meyering@redhat.com>
Wed, 29 Oct 2008 14:47:22 +0000
(15:47 +0100)
on at least mingw.
ChangeLog
patch
|
blob
|
history
rpc/xdr.h
patch
|
blob
|
history
diff --git
a/ChangeLog
b/ChangeLog
index
002cc27
..
db718b5
100644
(file)
--- a/
ChangeLog
+++ b/
ChangeLog
@@
-1,3
+1,8
@@
+2008-10-29 Jim Meyering <meyering@redhat.com>
+
+ * rpc/xdr.h (XDR_INLINE): Cast result to (void*), to avoid warnings,
+ on at least mingw.
+
2008-02-06 Richard Jones <rjones@redhat.com>
* xdr_float.c: Patch by Brecht Sanders which fixes type-punning
diff --git
a/rpc/xdr.h
b/rpc/xdr.h
index
3b87848
..
ba69894
100644
(file)
--- a/
rpc/xdr.h
+++ b/
rpc/xdr.h
@@
-161,7
+161,7
@@
typedef struct {
(*(xdrs)->x_ops->x_setpostn)(xdrs, pos)
#define XDR_INLINE(xdrs, len) \
- (
*(xdrs)->x_ops->x_inline)(xdrs, len
)
+ (
void *)((*(xdrs)->x_ops->x_inline)(xdrs, len)
)
#define xdr_inline(xdrs, len) \
(*(xdrs)->x_ops->x_inline)(xdrs, len)