summaryrefslogtreecommitdiff
path: root/serverboot/load.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-06-23 04:29:11 +0000
committerRoland McGrath <roland@gnu.org>2002-06-23 04:29:11 +0000
commit3e452f9fd0628d41f39f1e6a265f04c07eb0c958 (patch)
tree7687910f3511ffa48498a89c521c0de8ce84ede3 /serverboot/load.c
parentdf6acae39c82916cf76ce76da3395a6d8f8be142 (diff)
2002-06-22 Roland McGrath <roland@frob.com>
* load.c (boot_script_exec_cmd): Twiddle decls of serverboot_bunzip2 and serverboot_gunzip. * load.c (boot_script_exec_cmd): Cast int to intptr_t before char *.
Diffstat (limited to 'serverboot/load.c')
-rw-r--r--serverboot/load.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/serverboot/load.c b/serverboot/load.c
index 21289bf1..e95a64d7 100644
--- a/serverboot/load.c
+++ b/serverboot/load.c
@@ -318,8 +318,8 @@ boot_script_exec_cmd (void *hook,
* It might be gzip file.
*/
int err;
- extern int
- serverboot_gunzip(struct file *, void **, size_t *);
+ extern int serverboot_gunzip(struct file *,
+ vm_offset_t *, size_t *);
err = serverboot_gunzip(st.fp,
&(st.image_addr),
@@ -343,8 +343,8 @@ boot_script_exec_cmd (void *hook,
* It might be bzip2 file.
*/
int err;
- extern int
- serverboot_bunzip2(struct file *, void **, size_t *);
+ extern int serverboot_bunzip2(struct file *,
+ vm_offset_t *, size_t *);
err = serverboot_bunzip2(st.fp,
&(st.image_addr),
@@ -449,7 +449,7 @@ boot_script_exec_cmd (void *hook,
/*
* first the argument count
*/
- *k_ap++ = (char *)arg_count;
+ *k_ap++ = (char *)(intptr_t)arg_count;
/*
* Then the strings and string pointers for each argument