diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-05-08 22:11:15 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-05-08 22:11:15 +0000 |
commit | 1188f933aa2cff23ef8f56baa52cd4f3e1048f47 (patch) | |
tree | 6603830f086ec84ba949086f79dfc4df9a9cd69a /apps/recorder | |
parent | ed5b06b04c9abbedc5f3c326f057af5f38917151 (diff) | |
download | rockbox-1188f933aa2cff23ef8f56baa52cd4f3e1048f47.tar.gz rockbox-1188f933aa2cff23ef8f56baa52cd4f3e1048f47.zip |
Made it build warning-free on the sim. This could not have worked in the sim
previously. Made readshort() and readlong() static.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6444 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder')
-rw-r--r-- | apps/recorder/bmp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/recorder/bmp.c b/apps/recorder/bmp.c index 6b557783cf..e55c2f9d1e 100644 --- a/apps/recorder/bmp.c +++ b/apps/recorder/bmp.c | |||
@@ -61,17 +61,17 @@ struct Fileheader { | |||
61 | 61 | ||
62 | 62 | ||
63 | #ifdef ROCKBOX_LITTLE_ENDIAN | 63 | #ifdef ROCKBOX_LITTLE_ENDIAN |
64 | #define readshort(x) x | 64 | #define readshort(x) *(x) |
65 | #define readlong(x) x | 65 | #define readlong(x) *(x) |
66 | #else | 66 | #else |
67 | 67 | ||
68 | /* Endian functions */ | 68 | /* big endian functions */ |
69 | short readshort(void* value) { | 69 | static short readshort(short *value) { |
70 | unsigned char* bytes = (unsigned char*) value; | 70 | unsigned char* bytes = (unsigned char*) value; |
71 | return bytes[0] | (bytes[1] << 8); | 71 | return bytes[0] | (bytes[1] << 8); |
72 | } | 72 | } |
73 | 73 | ||
74 | long readlong(void* value) { | 74 | static long readlong(long *value) { |
75 | unsigned char* bytes = (unsigned char*) value; | 75 | unsigned char* bytes = (unsigned char*) value; |
76 | return (long)bytes[0] | ((long)bytes[1] << 8) | | 76 | return (long)bytes[0] | ((long)bytes[1] << 8) | |
77 | ((long)bytes[2] << 16) | ((long)bytes[3] << 24); | 77 | ((long)bytes[2] << 16) | ((long)bytes[3] << 24); |