aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/X11/PixFormats.c
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/lib/X11/PixFormats.c')
-rw-r--r--nx-X11/lib/X11/PixFormats.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nx-X11/lib/X11/PixFormats.c b/nx-X11/lib/X11/PixFormats.c
index 8e4a10027..6d9f64d2c 100644
--- a/nx-X11/lib/X11/PixFormats.c
+++ b/nx-X11/lib/X11/PixFormats.c
@@ -38,8 +38,8 @@ XPixmapFormatValues *XListPixmapFormats (
Display *dpy,
int *count) /* RETURN */
{
- XPixmapFormatValues *formats = (XPixmapFormatValues *)
- Xmalloc((unsigned) (dpy->nformats * sizeof (XPixmapFormatValues)));
+ XPixmapFormatValues *formats =
+ Xmalloc(dpy->nformats * sizeof (XPixmapFormatValues));
if (formats) {
register int i;