diff options
author | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2009-01-30 16:49:59 -0200 |
---|---|---|
committer | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2009-01-30 16:49:59 -0200 |
commit | 3747f97f133b5fe8dea0d1991d68c4693d488aae (patch) | |
tree | 2af42e1578c93a08e8a2ab8078d1d2ed4eba9346 /src | |
parent | f6f784c0f98c28915bd26d04e4d8839806e29877 (diff) |
Janitor: make distcheck, compiler warnings, .gitignore.
Diffstat (limited to 'src')
-rw-r--r-- | src/.gitignore | 6 | ||||
-rw-r--r-- | src/Filter.c | 12 | ||||
-rw-r--r-- | src/Makefile.am | 4 | ||||
-rw-r--r-- | src/Poly.c | 4 | ||||
-rw-r--r-- | src/Xrender.c | 26 |
5 files changed, 23 insertions, 29 deletions
diff --git a/src/.gitignore b/src/.gitignore deleted file mode 100644 index 94e77db..0000000 --- a/src/.gitignore +++ /dev/null @@ -1,6 +0,0 @@ -.deps -.libs -libXrender.la -*.lo -Makefile -Makefile.in diff --git a/src/Filter.c b/src/Filter.c index 45a481b..76c8cfa 100644 --- a/src/Filter.c +++ b/src/Filter.c @@ -40,14 +40,14 @@ XRenderQueryFilters (Display *dpy, Drawable drawable) long nbytes, nbytesAlias, nbytesName; if (!RenderHasExtension (info)) - return 0; + return NULL; if (!XRenderQueryFormats (dpy)) - return 0; + return NULL; xri = info->info; if (xri->minor_version < 6) - return 0; + return NULL; LockDisplay (dpy); GetReq (RenderQueryFilters, req); @@ -58,7 +58,7 @@ XRenderQueryFilters (Display *dpy, Drawable drawable) { UnlockDisplay (dpy); SyncHandle (); - return 0; + return NULL; } /* * Compute total number of bytes for filter names @@ -82,7 +82,7 @@ XRenderQueryFilters (Display *dpy, Drawable drawable) _XEatData (dpy, (unsigned long) rep.length << 2); UnlockDisplay (dpy); SyncHandle (); - return 0; + return NULL; } /* @@ -146,7 +146,7 @@ XRenderSetPictureFilter (Display *dpy, req->nbytes = nbytes; req->length += ((nbytes + 3) >> 2) + nparams; Data (dpy, filter, nbytes); - Data (dpy, params, nparams << 2); + Data (dpy, (_Xconst char *)params, nparams << 2); UnlockDisplay(dpy); SyncHandle(); } diff --git a/src/Makefile.am b/src/Makefile.am index 19dab07..7482017 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,4 +1,4 @@ -AM_CFLAGS = $(RENDER_CFLAGS) $(X_CFLAGS) -I$(top_srcdir) -I$(top_srcdir)/include/X11/extensions $(MALLOC_ZERO_CFLAGS) +AM_CFLAGS = $(RENDER_CFLAGS) -I$(top_srcdir) -I$(top_srcdir)/include/X11/extensions $(MALLOC_ZERO_CFLAGS) lib_LTLIBRARIES = libXrender.la @@ -17,7 +17,7 @@ libXrender_la_SOURCES = AddTrap.c \ Xrender.c \ Xrenderint.h -libXrender_la_LIBADD = @X_LIBS@ -lX11 +libXrender_la_LIBADD = $(RENDER_LIBS) # -version-number requires libtool >= 1.5 libXrender_la_LDFLAGS = -version-number 1:3:0 -no-undefined @@ -99,7 +99,7 @@ XRenderComputeTrapezoids (Edge *edges, qsort (edges, nedges, sizeof (Edge), CompareEdge); y = edges[0].edge.p1.y; - active = 0; + active = NULL; inactive = 0; while (active || inactive < nedges) { @@ -112,7 +112,7 @@ XRenderComputeTrapezoids (Edge *edges, /* move this edge into the active list */ inactive++; e->next = active; - e->prev = 0; + e->prev = NULL; if (active) active->prev = e; active = e; diff --git a/src/Xrender.c b/src/Xrender.c index 3a51663..c763076 100644 --- a/src/Xrender.c +++ b/src/Xrender.c @@ -346,7 +346,7 @@ _XRenderFindFormat (XRenderInfo *xri, PictFormat format) for (nf = 0; nf < xri->nformat; nf++) if (xri->format[nf].id == format) return &xri->format[nf]; - return 0; + return NULL; } static Visual * @@ -601,15 +601,15 @@ XRenderFindVisualFormat (Display *dpy, _Xconst Visual *visual) int nv; XRenderInfo *xri; XRenderVisual *xrv; - - RenderCheckExtension (dpy, info, 0); + + RenderCheckExtension (dpy, info, NULL); if (!XRenderQueryFormats (dpy)) - return 0; + return NULL; xri = info->info; for (nv = 0, xrv = xri->visual; nv < xri->nvisual; nv++, xrv++) if (xrv->visual == visual) return xrv->format; - return 0; + return NULL; } XRenderPictFormat * @@ -621,10 +621,10 @@ XRenderFindFormat (Display *dpy, XRenderExtDisplayInfo *info = XRenderFindDisplay (dpy); int nf; XRenderInfo *xri; - - RenderCheckExtension (dpy, info, 0); + + RenderCheckExtension (dpy, info, NULL); if (!XRenderQueryFormats (dpy)) - return 0; + return NULL; xri = info->info; for (nf = 0; nf < xri->nformat; nf++) { @@ -667,7 +667,7 @@ XRenderFindFormat (Display *dpy, if (count-- == 0) return &xri->format[nf]; } - return 0; + return NULL; } XRenderPictFormat * @@ -820,7 +820,7 @@ XRenderFindStandardFormat (Display *dpy, standardFormats[format].mask, &standardFormats[format].templ, 0); - return 0; + return NULL; } XIndexValue * @@ -834,7 +834,7 @@ XRenderQueryPictIndexValues(Display *dpy, XIndexValue *values; int nbytes, nread, rlength, i; - RenderCheckExtension (dpy, info, 0); + RenderCheckExtension (dpy, info, NULL); LockDisplay (dpy); GetReq (RenderQueryPictIndexValues, req); @@ -845,7 +845,7 @@ XRenderQueryPictIndexValues(Display *dpy, { UnlockDisplay (dpy); SyncHandle (); - return 0; + return NULL; } /* request data length */ @@ -862,7 +862,7 @@ XRenderQueryPictIndexValues(Display *dpy, _XEatData (dpy, nbytes); UnlockDisplay (dpy); SyncHandle (); - return 0; + return NULL; } /* read the values one at a time and convert */ |