From e165b852ded88acff34e4cb4f334647dcb33c319 Mon Sep 17 00:00:00 2001 From: jhb Date: Thu, 3 Aug 2000 09:14:02 +0000 Subject: Cleanup warnings. Most of these are signed/unsigned warnings, as well as some added const's. --- sys/boot/common/module.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/boot/common/module.c') diff --git a/sys/boot/common/module.c b/sys/boot/common/module.c index 8ad0dc0..effb848 100644 --- a/sys/boot/common/module.c +++ b/sys/boot/common/module.c @@ -49,7 +49,7 @@ struct file_metadata* metadata_next(struct file_metadata *base_mp, int type); /* load address should be tweaked by first module loaded (kernel) */ static vm_offset_t loadaddr = 0; -static char *default_searchpath ="/;/boot;/modules"; +static const char *default_searchpath ="/;/boot;/modules"; struct preloaded_file *preloaded_files = NULL; @@ -434,7 +434,7 @@ file_addmetadata(struct preloaded_file *fp, int type, size_t size, void *p) { struct file_metadata *md; - md = malloc(sizeof(struct file_metadata) + size); + md = malloc(sizeof(struct file_metadata) - sizeof(md->md_data) + size); md->md_size = size; md->md_type = type; bcopy(p, md->md_data, size); -- cgit v1.1