summaryrefslogtreecommitdiffstats
path: root/helper/kernel.c
diff options
context:
space:
mode:
Diffstat (limited to 'helper/kernel.c')
-rw-r--r--helper/kernel.c4
1 files 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}'";