summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2011-07-22 15:18:18 +0100
committerRichard W.M. Jones <rjones@redhat.com>2011-07-22 15:18:18 +0100
commit25bc2ca090c135c280a46758e510d920f26f29a4 (patch)
treeece66cabe2ac75c92a4a451197a4df5dfcc30900
parent5678972dca34f06bfa520bd7e9ee558a1a3164b4 (diff)
downloadfebootstrap-25bc2ca090c135c280a46758e510d920f26f29a4.tar.gz
febootstrap-25bc2ca090c135c280a46758e510d920f26f29a4.tar.xz
febootstrap-25bc2ca090c135c280a46758e510d920f26f29a4.zip
helper: create_kernel_archlinux should return const char *
-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}'";