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

View: New views
2 Messages — Rating Filter:   Alert me  

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

by Chris Frey-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

---
 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

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

by Daniel Gollub-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Chris,

On Wednesday 01 April 2009 12:52:19 am Chris Frey wrote:
> ---
>  src/xmlformat.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

Looks good to me - please commit.

Best Regards,
Daniel

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