diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2002-05-30 08:40:21 +0000 |
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2002-05-30 08:40:21 +0000 |
| commit | 5813fa90d31c74c59a180b1cbfba608a8a381fd1 (patch) | |
| tree | 93b84906a8a40542990cc7972a4bf11a8c726b02 /apps | |
| parent | 3c3bcf4e43f68619bcef45902bede0596e4955d6 (diff) | |
| download | rockbox-5813fa90d31c74c59a180b1cbfba608a8a381fd1.zip rockbox-5813fa90d31c74c59a180b1cbfba608a8a381fd1.tar.gz rockbox-5813fa90d31c74c59a180b1cbfba608a8a381fd1.tar.bz2 rockbox-5813fa90d31c74c59a180b1cbfba608a8a381fd1.tar.xz | |
removed unused variables, removed static variables
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@816 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/recorder/bmp.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/apps/recorder/bmp.c b/apps/recorder/bmp.c index cd49fd0..d02e9d4 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) { |