From 5813fa90d31c74c59a180b1cbfba608a8a381fd1 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 30 May 2002 08:40:21 +0000 Subject: removed unused variables, removed static variables git-svn-id: svn://svn.rockbox.org/rockbox/trunk@816 a1c6a512-1295-4272-9138-f99709370657 --- apps/recorder/bmp.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'apps/recorder/bmp.c') diff --git a/apps/recorder/bmp.c b/apps/recorder/bmp.c index cd49fd02a4..d02e9d4b15 100644 --- a/apps/recorder/bmp.c +++ b/apps/recorder/bmp.c @@ -67,13 +67,6 @@ struct RGBQUAD unsigned char rgbReserved; } STRUCT_PACKED; -static struct Fileheader fh; -static unsigned char* bmp; -static struct RGBQUAD palette[2]; /* two colors only */ - -static unsigned int bitmap_width, bitmap_height; -static unsigned char *bitmap; - #ifdef STANDALONE static id_str[256]; static bool compress = false; @@ -110,15 +103,19 @@ int read_bmp_file(char* filename, int *get_height, /* in pixels */ char *bitmap) { + struct Fileheader fh; + struct RGBQUAD palette[2]; /* two colors only */ + + unsigned int bitmap_width, bitmap_height; + long PaddedWidth; int background; int fd = open(filename, O_RDONLY); long size; - unsigned int row, col, byte, bit; + unsigned int row, col; int l; unsigned char *bmp; int width; - int height; if(fd == -1) { -- cgit v1.2.3