From 25bc2ca090c135c280a46758e510d920f26f29a4 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 22 Jul 2011 15:18:18 +0100 Subject: helper: create_kernel_archlinux should return const char * --- helper/kernel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helper/kernel.c b/helper/kernel.c index 45d7034..538942c 100644 --- a/helper/kernel.c +++ b/helper/kernel.c @@ -78,7 +78,7 @@ has_modpath (const char *kernel_name) } } -static char *create_kernel_archlinux (const char *hostcpu, const char *kernel); +static const char *create_kernel_archlinux (const char *hostcpu, const char *kernel); /* Create the kernel. This chooses an appropriate kernel and makes a * symlink to it. @@ -158,7 +158,7 @@ create_kernel (const char *hostcpu, const char *kernel) /* In ArchLinux, kernel is always named /boot/vmlinuz26, and we have * to use the 'file' command to work out what version it is. */ -static char * +static const char * create_kernel_archlinux (const char *hostcpu, const char *kernel) { const char *file_cmd = "file /boot/vmlinuz26 | awk '{print $9}'"; -- cgit