glamor: Silent compilation warnings due to some deprecated APIs.

those xcalloc/xfree/xalloc/XNFprintf/... are deprecated. Replace
then with the new one. And fix some other minor problems.
This commit is contained in:
Zhigang Gong 2011-05-12 14:49:08 +08:00
commit c97d4533f2
12 changed files with 56 additions and 87 deletions

View file

@ -61,7 +61,7 @@ glamor_get_spans(DrawablePtr drawable,
switch (drawable->depth) {
case 1:
temp_dst = xalloc(wmax);
temp_dst = malloc(wmax);
format = GL_ALPHA;
type = GL_UNSIGNED_BYTE;
readpixels_dst = temp_dst;
@ -111,7 +111,7 @@ glamor_get_spans(DrawablePtr drawable,
readpixels_dst += PixmapBytePad(widths[i], drawable->depth);
}
}
xfree(temp_dst);
free(temp_dst);
return;
fail: