diff options
author | jhb <jhb@FreeBSD.org> | 2000-08-03 09:14:02 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2000-08-03 09:14:02 +0000 |
commit | e165b852ded88acff34e4cb4f334647dcb33c319 (patch) | |
tree | a0d78fd9b77c781f88bf64107578f9e585421ff5 /sys/boot/common/module.c | |
parent | 1f9890b495e04d1e7d9e102fd9df269969c2885c (diff) | |
download | FreeBSD-src-e165b852ded88acff34e4cb4f334647dcb33c319.zip FreeBSD-src-e165b852ded88acff34e4cb4f334647dcb33c319.tar.gz |
Cleanup warnings. Most of these are signed/unsigned warnings, as well as
some added const's.
Diffstat (limited to 'sys/boot/common/module.c')
-rw-r--r-- | sys/boot/common/module.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |