summaryrefslogtreecommitdiffstats
path: root/utils/disassembler/arm/main.c
diff options
context:
space:
mode:
authorBarry Wardell <rockbox@barrywardell.net>2007-08-01 22:17:36 +0000
committerBarry Wardell <rockbox@barrywardell.net>2007-08-01 22:17:36 +0000
commit0b8dd125c3744fbfd4b3162de7882f5dd60f5e0a (patch)
tree511d76f2b39763b4689e3fd713b69c366e8f1264 /utils/disassembler/arm/main.c
parent307d2ddce98ef81f5cd3e5e1f24a7ddada60c486 (diff)
downloadrockbox-0b8dd125c3744fbfd4b3162de7882f5dd60f5e0a.tar.gz
rockbox-0b8dd125c3744fbfd4b3162de7882f5dd60f5e0a.tar.bz2
rockbox-0b8dd125c3744fbfd4b3162de7882f5dd60f5e0a.zip
FS#7182: Initial attempt by Dave Chapman at getting ARM disassembler to compile in Linux.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14127 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/disassembler/arm/main.c')
-rw-r--r--utils/disassembler/arm/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/disassembler/arm/main.c b/utils/disassembler/arm/main.c
index 834dc5ff93..59dad48176 100644
--- a/utils/disassembler/arm/main.c
+++ b/utils/disassembler/arm/main.c
@@ -10,7 +10,7 @@ ULONG isdata[1000000]; /* each bit defines one byte as: code=0, data=1 */
extern void dis_asm(ULONG off, ULONG val, char *stg);
-void main(int argc, char **argv)
+int main(int argc, char **argv)
{
FILE *in, *out;
char *ptr, stg[256];
@@ -20,7 +20,7 @@ void main(int argc, char **argv)
if(argc == 1 || strcmp(argv[1], "--help") == 0)
{ printf("Usage: arm_disass [input file]\n");
- printf(" disassembles input file to 'disasm.txt'");
+ printf(" disassembles input file to 'disasm.txt'\n");
exit(-1);
}
@@ -115,4 +115,4 @@ void main(int argc, char **argv)
}
fclose(in);
-} \ No newline at end of file
+}