Commit Graph

10 Commits

Author SHA1 Message Date
Daniel P. Berrange
6142b84cd4 Remove casts from void * with xrealloc() calls
The xrealloc() function returns void*, so the return value
never needs to be cast
2012-03-20 15:25:55 +01:00
Daniel P. Berrange
4a9f7971fc Remove useless if() before free()
The free() function allows NULL to be passed in, so any
code which puts a if() before free() is wasting time
2012-03-20 15:25:55 +01:00
Christophe Fergeau
40c06459e5 fix memory leak in error path
Issue found by the Coverity scanner
2012-03-20 15:25:54 +01:00
Arnon Gilboa
88f7e2b32d common: use INLINE instead of inline
needed for spice/common files used by the client, server & qxl driver.
in windows _inline works for both c/c++, while inline is c++ only.
compiling the client with mixed c/c++ code required this define.
2012-03-20 15:25:53 +01:00
Christophe Fergeau
08326f733a 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
2012-03-20 15:25:52 +01:00
Alexander Larsson
a95a9fe41c Initialize variable to avoid compiler warning
Seems the OSX gcc warns on saveRight not being initialzied.
2012-03-20 15:25:50 +01:00
Alexander Larsson
7653380e7e Use the spice allocator in common/ 2012-03-20 15:25:40 +01:00
Alexander Larsson
29b01c2c16 Use macros from <spice/macros.h> rather than duplicate them 2012-03-20 15:25:40 +01:00
Larsson@.(none)
196e75a55f Fix warnings from visual studio compiler 2012-03-20 15:25:39 +01:00
Alexander Larsson
639b6b5b26 Add line rasterizer 2012-03-20 15:25:37 +01:00