diff options
author | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2009-01-30 15:45:20 -0200 |
---|---|---|
committer | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2009-01-30 15:45:20 -0200 |
commit | 6697e31fbb616656b7f34515a79454af394b500a (patch) | |
tree | 504d0d5c456226bec6ced89839d94964a728e321 /src/Attrib.c | |
parent | 41e4e2de4d73d098d332ece0410e9f8fda4fe10d (diff) | |
download | xorg-lib-libXpm-6697e31fbb616656b7f34515a79454af394b500a.tar.gz |
Janitor: ansification, make distcheck, .gitignore
The ansification code is minor edit of the patch (by me) at
https://bugs.freedesktop.org/show_bug.cgi?id=14727
as it would not apply cleanly anymore.
Diffstat (limited to 'src/Attrib.c')
-rw-r--r-- | src/Attrib.c | 42 |
1 files changed, 20 insertions, 22 deletions
diff --git a/src/Attrib.c b/src/Attrib.c index a6feb52..cb304df 100644 --- a/src/Attrib.c +++ b/src/Attrib.c @@ -49,10 +49,10 @@ LFUNC(FreeOldColorTable, void, (XpmColor **colorTable, unsigned int ncolors)); * Create a colortable compatible with the old style colortable */ static int -CreateOldColorTable(ct, ncolors, oldct) - XpmColor *ct; - unsigned int ncolors; - XpmColor ***oldct; +CreateOldColorTable( + XpmColor *ct, + unsigned int ncolors, + XpmColor ***oldct) { XpmColor **colorTable, **color; unsigned int a; @@ -72,9 +72,9 @@ CreateOldColorTable(ct, ncolors, oldct) } static void -FreeOldColorTable(colorTable, ncolors) - XpmColor **colorTable; - unsigned int ncolors; +FreeOldColorTable( + XpmColor **colorTable, + unsigned int ncolors) { unsigned int a, b; XpmColor **color; @@ -97,9 +97,9 @@ FreeOldColorTable(colorTable, ncolors) * Free the computed color table */ void -xpmFreeColorTable(colorTable, ncolors) - XpmColor *colorTable; - int ncolors; +xpmFreeColorTable( + XpmColor *colorTable, + int ncolors) { int a, b; XpmColor *color; @@ -119,9 +119,9 @@ xpmFreeColorTable(colorTable, ncolors) * Free array of extensions */ void -XpmFreeExtensions(extensions, nextensions) - XpmExtension *extensions; - int nextensions; +XpmFreeExtensions( + XpmExtension *extensions, + int nextensions) { unsigned int i, j, nlines; XpmExtension *ext; @@ -147,7 +147,7 @@ XpmFreeExtensions(extensions, nextensions) */ int -XpmAttributesSize() +XpmAttributesSize(void) { return sizeof(XpmAttributes); } @@ -156,8 +156,7 @@ XpmAttributesSize() * Init returned data to free safely later on */ void -xpmInitAttributes(attributes) - XpmAttributes *attributes; +xpmInitAttributes(XpmAttributes *attributes) { if (attributes) { attributes->pixels = NULL; @@ -184,10 +183,10 @@ xpmInitAttributes(attributes) * Fill in the XpmAttributes with the XpmImage and the XpmInfo */ void -xpmSetAttributes(attributes, image, info) - XpmAttributes *attributes; - XpmImage *image; - XpmInfo *info; +xpmSetAttributes( + XpmAttributes *attributes, + XpmImage *image, + XpmInfo *info) { if (attributes->valuemask & XpmReturnColorTable) { attributes->colorTable = image->colorTable; @@ -254,8 +253,7 @@ xpmSetAttributes(attributes, image, info) * but the structure itself */ void -XpmFreeAttributes(attributes) - XpmAttributes *attributes; +XpmFreeAttributes(XpmAttributes *attributes) { if (attributes->valuemask & XpmReturnPixels && attributes->npixels) { XpmFree(attributes->pixels); |