summaryrefslogtreecommitdiffstats
path: root/commands/linux16.c
diff options
context:
space:
mode:
authorJuergen Beisert <jbe@pengutronix.de>2010-12-22 15:06:10 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2011-03-10 11:15:22 +0100
commitb01ceef2e24829d46c8e703268ac3ddb782b7eac (patch)
tree5fa9e63c389c074bfea14b8ffca40b403c720a3a /commands/linux16.c
parent263635161cbdee49f6fa92bccf14de278ab40e3e (diff)
downloadbarebox-b01ceef2e24829d46c8e703268ac3ddb782b7eac.tar.gz
barebox-b01ceef2e24829d46c8e703268ac3ddb782b7eac.tar.xz
LINUX16: Fix warning
Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Diffstat (limited to 'commands/linux16.c')
-rw-r--r--commands/linux16.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/commands/linux16.c b/commands/linux16.c
index 0cdb673646..8a1b5fed75 100644
--- a/commands/linux16.c
+++ b/commands/linux16.c
@@ -260,7 +260,8 @@ static int do_linux16(struct command *cmdtp, int argc, char *argv[])
if (setup_sects >= 15) {
void *src = lh;
if (lh->kernel_version != 0)
- printf("Kernel version: '%s'\n", src + lh->kernel_version + DISK_SECTOR_SIZE);
+ printf("Kernel version: '%s'\n",
+ (char *)src + lh->kernel_version + DISK_SECTOR_SIZE);
}
/*