git.annexia.org
/
febootstrap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5678972
)
helper: create_kernel_archlinux should return const char *
author
Richard W.M. Jones
<rjones@redhat.com>
Fri, 22 Jul 2011 14:18:18 +0000
(15:18 +0100)
committer
Richard W.M. Jones
<rjones@redhat.com>
Fri, 22 Jul 2011 14:18:18 +0000
(15:18 +0100)
helper/kernel.c
patch
|
blob
|
history
diff --git
a/helper/kernel.c
b/helper/kernel.c
index
45d7034
..
538942c
100644
(file)
--- 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 c
onst c
har *create_kernel_archlinux (const char *hostcpu, const char *kernel);
/* Create the kernel. This chooses an appropriate kernel and makes a
* symlink to it.
/* 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.
*/
/* 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 c
onst c
har *
create_kernel_archlinux (const char *hostcpu, const char *kernel)
{
const char *file_cmd = "file /boot/vmlinuz26 | awk '{print $9}'";
create_kernel_archlinux (const char *hostcpu, const char *kernel)
{
const char *file_cmd = "file /boot/vmlinuz26 | awk '{print $9}'";