summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-12-12 10:45:50 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-12-12 10:45:50 +0000
commit0167b5508397fbfd81677078736683cf4f0fb319 (patch)
treebb0dd609dd3bbac1a15af765e25dd9568fb24486 /apps/plugins
parent10d6165034059ed471e05fd6e6190ff526f620b9 (diff)
downloadrockbox-0167b5508397fbfd81677078736683cf4f0fb319.zip
rockbox-0167b5508397fbfd81677078736683cf4f0fb319.tar.gz
rockbox-0167b5508397fbfd81677078736683cf4f0fb319.tar.bz2
rockbox-0167b5508397fbfd81677078736683cf4f0fb319.tar.xz
fixed a // comment, added a comment how this source file checks for features
the wrong way. I didn't address the actual error due to limited time. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4128 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/firmware_flash.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/plugins/firmware_flash.c b/apps/plugins/firmware_flash.c
index 6a0a799..10b4145 100644
--- a/apps/plugins/firmware_flash.c
+++ b/apps/plugins/firmware_flash.c
@@ -44,6 +44,10 @@
#define ID_PLAYER 2
#define ID_REC_V2 3
+/* We should never check for ARCHOS_* defines in source code. We must
+ check for features/hardware that have been defined in config-*.h files.
+ This makes it easier for us to maintain portability. */
+
#if defined(ARCHOS_PLAYER)
#define FILE_TYPE "player"
#define KEEP VERSION_ADR /* keep the firmware version */
@@ -61,7 +65,7 @@
#define KEEP MASK_ADR /* keep the mask value */
#define PLATFORM_ID ID_FM
#else
-#error ("No known platform given!")
+#error "No known platform given!"
#endif
/* result of the CheckFirmwareFile() function */
@@ -340,7 +344,7 @@ tCheckResult CheckFirmwareFile(char* filename, int chipsize, bool is_romless)
return eReadErr;
}
- // version number in file plausible with this hardware?
+ /* version number in file plausible with this hardware? */
if (!CheckPlatform(PLATFORM_ID, *(UINT16*)(sector + VERSION_ADR)))
{
rb->close(fd);