Commit d4465b71 authored by Mike Gabriel's avatar Mike Gabriel

Xserver/hw/nxagent/compext: Xfree -> free and Xmalloc -> malloc.

parent 8cca3f09
...@@ -73,7 +73,7 @@ char *BitmapCompressData(XImage *image, unsigned int *size) ...@@ -73,7 +73,7 @@ char *BitmapCompressData(XImage *image, unsigned int *size)
*size = image -> width * image -> height * 3; *size = image -> width * image -> height * 3;
data = Xmalloc(*size); data = malloc(*size);
if (data == NULL) if (data == NULL)
{ {
......
...@@ -39,13 +39,6 @@ extern "C" { ...@@ -39,13 +39,6 @@ extern "C" {
#include <nx/NXvars.h> #include <nx/NXvars.h>
/* /*
* All the NX code should use these.
*/
#define Xmalloc(size) malloc((size))
#define Xfree(ptr) free((ptr))
/*
* Maximum number of supported pack methods. * Maximum number of supported pack methods.
*/ */
......
...@@ -67,7 +67,7 @@ char *ZCompressData(const char *plainData, unsigned int plainSize, int threshold ...@@ -67,7 +67,7 @@ char *ZCompressData(const char *plainData, unsigned int plainSize, int threshold
*compressedSize = plainSize + (plainSize / 1000) + 12 + 1; *compressedSize = plainSize + (plainSize / 1000) + 12 + 1;
compressedData = Xmalloc(*compressedSize); compressedData = malloc(*compressedSize);
if (compressedData == NULL) if (compressedData == NULL)
{ {
...@@ -129,7 +129,7 @@ char *ZCompressData(const char *plainData, unsigned int plainSize, int threshold ...@@ -129,7 +129,7 @@ char *ZCompressData(const char *plainData, unsigned int plainSize, int threshold
plainSize, zError(result)); plainSize, zError(result));
#endif #endif
Xfree(compressedData); free(compressedData);
*compressedSize = 0; *compressedSize = 0;
...@@ -245,7 +245,7 @@ int ZInitEncoder() ...@@ -245,7 +245,7 @@ int ZInitEncoder()
{ {
int result; int result;
zStream = Xmalloc(sizeof(z_stream)); zStream = malloc(sizeof(z_stream));
if (zStream == NULL) if (zStream == NULL)
{ {
...@@ -300,7 +300,7 @@ int ZResetEncoder() ...@@ -300,7 +300,7 @@ int ZResetEncoder()
#endif #endif
} }
Xfree(zStream); free(zStream);
} }
zInitialized = 0; zInitialized = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment