« Return to Thread: [PATCH] Removed unneeded cast for osync_marshal_read_buffer() due to API change

[PATCH] Removed unneeded cast for osync_marshal_read_buffer() due to API change

by Chris Frey-2 :: Rate this Message:

Reply to Author | View in Thread

---
 src/xmlformat.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/xmlformat.c b/src/xmlformat.c
index e0e989b..08d14f3 100644
--- a/src/xmlformat.c
+++ b/src/xmlformat.c
@@ -103,7 +103,7 @@ osync_bool demarshal_xmlformat(OSyncMarshal *marshal, char **output, unsigned in
  void *buffer = NULL;
  unsigned int size = 0;
  OSyncXMLFormat *xmlformat = NULL;
- osync_marshal_read_buffer(marshal, &buffer, (int *)&size);
+ osync_marshal_read_buffer(marshal, &buffer, &size);
 
  xmlformat = osync_xmlformat_parse((char *)buffer, size, error);
  if (!xmlformat) {
--
1.6.2.1


------------------------------------------------------------------------------
_______________________________________________
Opensync-devel mailing list
Opensync-devel@...
https://lists.sourceforge.net/lists/listinfo/opensync-devel

 « Return to Thread: [PATCH] Removed unneeded cast for osync_marshal_read_buffer() due to API change