]> git.draconx.ca Git - liblbx.git/commitdiff
liblbx: Remove useless use of uint8_t.
authorNick Bowler <nbowler@draconx.ca>
Thu, 4 Feb 2010 15:54:53 +0000 (10:54 -0500)
committerNick Bowler <nbowler@draconx.ca>
Mon, 8 Feb 2010 17:00:54 +0000 (12:00 -0500)
src/image.c

index 888515b45293ad22b5815f4be9a8885fe3136f5e..9bc4985942c69411228d85b7e05451c26a135279 100644 (file)
@@ -21,7 +21,6 @@
 #endif
 
 #include <stdlib.h>
-#include <stdint.h>
 #include <string.h>
 #include <assert.h>
 #include <errno.h>
@@ -323,7 +322,7 @@ unsigned char **lbximg_getframe(struct lbx_image *img, int frame)
 
 int lbximg_loadpalette(FILE *f, struct lbx_colour palette[static 256])
 {
-       uint8_t entry[4];
+       unsigned char entry[4];
        int i;
 
        for (i = 0; i < 256; i++) {
@@ -350,11 +349,10 @@ int lbximg_loadpalette(FILE *f, struct lbx_colour palette[static 256])
 int
 lbximg_getpalette(struct lbx_image *img, struct lbx_colour palette[static 256])
 {
+       unsigned char entry[4];
        unsigned int i;
        size_t rc;
 
-       uint8_t  entry[4];
-
        /* Do nothing if the image doesn't have embedded palette data. */
        if (!(img->flags & FLAG_PALETTE))
                return 0;