Commit Graph

10 Commits

Author SHA1 Message Date
Dan McGee
4b6d1d5347 Add casts for compatibility purposes
Some non-Linux platforms return a (caddr_t *) result for the return
value of mmap(), which is very unfortunate. Add a (void *) cast to
explicitly avoid the warning when compiling with -Werror.

For the IO vector related stuff, signed vs. unsigned comes into play so
adding a (void *) cast here is technically correct for all platforms.

Signed-off-by: Dan McGee <dpmcgee@gmail.com>
2012-02-14 10:44:49 +02:00
Christophe Fergeau
4801005294 fix integer marshalling helpers on big endian
They were trying to convert the destination pointer to an integer before
trying to dereference it. The initial conversion was meant to be a cast
to a pointer of the right size, not to an integer.
2011-07-28 11:32:46 +02:00
Christophe Fergeau
00cb6ff678 fix typo in big endian code path
uint63_t should be uint64_t
2011-07-28 11:32:46 +02:00
Christophe Fergeau
da4b2715cc add #include <config.h> to all source files
When using config.h, it must be the very first include in all source
files since it contains #define that may change the compilation process
(eg libc structure layout changes when it's used to enable large file
support on 32 bit x86 archs). This commit adds it at the beginning
of all .c and .cpp files
2011-05-03 14:44:10 +02:00
Alexander Larsson
1989b09a5e Fix sign warnings from win32 compiler 2010-07-08 15:44:39 +02:00
Alexander Larsson
c226eb0300 Add spice_marshaller_add_ref_chunks 2010-07-07 23:10:51 +02:00
Alexander Larsson
efe133f71d Add spice_marshaller_set_uint32
With this function you can update an added uint32 after it being added.
To make this possible all the spice_marshaller_add_add_foo functions
now return a pointer that can be used as a reference when later
setting a value.
2010-06-30 22:35:17 +02:00
Gerd Hoffmann
5e36912bb6 fix use-after-free in spice_marshaller_reset 2010-06-23 13:49:21 +02:00
Alexander Larsson
dcc0f272e9 Make generated marshallers build on win32 2010-06-18 21:10:25 +02:00
Alexander Larsson
b4fb471132 Add SpiceMarshaller for easy marshalling 2010-06-18 16:32:11 +02:00