From: Richard W.M. Jones Date: Fri, 22 Jul 2011 14:18:18 +0000 (+0100) Subject: helper: create_kernel_archlinux should return const char * X-Git-Tag: 3.8~2 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=25bc2ca090c135c280a46758e510d920f26f29a4;p=febootstrap.git helper: create_kernel_archlinux should return const char * --- 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}'";