The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=c75ba31904e342443c89e4dfecf1aa1715c7e063
commit c75ba31904e342443c89e4dfecf1aa1715c7e063 Author: Ahmad Khalifa <ahmadkhalifa...@gmail.com> AuthorDate: 2024-08-30 23:36:06 +0000 Commit: Warner Losh <i...@freebsd.org> CommitDate: 2025-01-24 21:29:39 +0000 stand: file_loadraw: make 'type' a const char * Reviewed by: imp, kib Pull Request: https://github.com/freebsd/freebsd-src/pull/1394 --- stand/common/bootstrap.h | 2 +- stand/common/module.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stand/common/bootstrap.h b/stand/common/bootstrap.h index cc198490ac3b..0c6462f8d1a1 100644 --- a/stand/common/bootstrap.h +++ b/stand/common/bootstrap.h @@ -271,7 +271,7 @@ void unload(void); struct preloaded_file *file_alloc(void); struct preloaded_file *file_findfile(const char *name, const char *type); struct file_metadata *file_findmetadata(struct preloaded_file *fp, int type); -struct preloaded_file *file_loadraw(const char *name, char *type, int insert); +struct preloaded_file *file_loadraw(const char *name, const char *type, int insert); void file_discard(struct preloaded_file *fp); void file_addmetadata(struct preloaded_file *, int, size_t, void *); int file_addmodule(struct preloaded_file *, char *, int, diff --git a/stand/common/module.c b/stand/common/module.c index 29228f0de22a..0c9dbcb53c2e 100644 --- a/stand/common/module.c +++ b/stand/common/module.c @@ -652,7 +652,7 @@ file_load_dependencies(struct preloaded_file *base_file) * no arguments or anything. */ struct preloaded_file * -file_loadraw(const char *fname, char *type, int insert) +file_loadraw(const char *fname, const char *type, int insert) { struct preloaded_file *fp; char *name;