summaryrefslogtreecommitdiffstats
path: root/rbutil
diff options
context:
space:
mode:
authorJames Buren <braewoods+rb@braewoods.net>2021-04-06 21:56:55 -0500
committerSolomon Peachy <pizza@shaftnet.org>2021-04-23 01:01:31 +0000
commitf968d6032ab32db179a7617158078e488b1f0748 (patch)
tree2bc71f83b81ad7c08c0cc26ebe65c80b398856be /rbutil
parent79d1b68fe29a4963fb17ef47426b6df3847212c1 (diff)
downloadrockbox-f968d6032ab32db179a7617158078e488b1f0748.tar.gz
rockbox-f968d6032ab32db179a7617158078e488b1f0748.zip
ipodpatcher: fix warning for apple stop sign constant
Convert both instances of the apple stop sign constant to char array instances. This ensures sizeof will work as expected when applied to the constant. Change-Id: I8599f7b0a00031e944e654b12a0bc59309926807
Diffstat (limited to 'rbutil')
-rw-r--r--rbutil/ipodpatcher/ipodpatcher.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/rbutil/ipodpatcher/ipodpatcher.c b/rbutil/ipodpatcher/ipodpatcher.c
index 6df9060bdc..e047e52abe 100644
--- a/rbutil/ipodpatcher/ipodpatcher.c
+++ b/rbutil/ipodpatcher/ipodpatcher.c
@@ -53,22 +53,22 @@ int ipod_verbose = 0;
/* The following string appears at the start of the firmware partition */
-static const char *apple_stop_sign = "{{~~ /-----\\ "\
- "{{~~ / \\ "\
- "{{~~| | "\
- "{{~~| S T O P | "\
- "{{~~| | "\
- "{{~~ \\ / "\
- "{{~~ \\-----/ "\
- "Copyright(C) 200"\
- "1 Apple Computer"\
- ", Inc.----------"\
- "----------------"\
- "----------------"\
- "----------------"\
- "----------------"\
- "----------------"\
- "---------------";
+static const char apple_stop_sign[] = "{{~~ /-----\\ "\
+ "{{~~ / \\ "\
+ "{{~~| | "\
+ "{{~~| S T O P | "\
+ "{{~~| | "\
+ "{{~~ \\ / "\
+ "{{~~ \\-----/ "\
+ "Copyright(C) 200"\
+ "1 Apple Computer"\
+ ", Inc.----------"\
+ "----------------"\
+ "----------------"\
+ "----------------"\
+ "----------------"\
+ "----------------"\
+ "---------------";
/* Windows requires the buffer for disk I/O to be aligned in memory on a
multiple of the disk volume size - so we use a single global variable