]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: mkimage: make RC4 key const
authorJohn Keeping <john@metanate.com>
Fri, 18 Nov 2022 16:13:18 +0000 (16:13 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Mon, 16 Jan 2023 10:01:10 +0000 (18:01 +0800)
This is read-only data, so mark it as such.

Signed-off-by: John Keeping <john@metanate.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@vrull.eu>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
tools/rkcommon.c

index 0db45c2d41cb8e0f17d855c581ed8cfd325da1e8..fab61949e10d9f21d2615324f8918e4c21bb7c93 100644 (file)
@@ -154,7 +154,7 @@ struct spl_params {
 
 static struct spl_params spl_params = { 0 };
 
-static unsigned char rc4_key[16] = {
+static const unsigned char rc4_key[16] = {
        124, 78, 3, 4, 85, 5, 9, 7,
        45, 44, 123, 56, 23, 13, 23, 17
 };