From 3cfc69e6c2a8a51bb277254e4dfed9dca2eaab98 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Fri, 29 Jan 1999 08:36:45 +0000 Subject: More -Wall / -Wcast-qual cleanup. Also, EXEC_SET can't use C_DECLARE_MODULE due to the linker_file_sysinit() function making modifications to the data. --- sys/sys/module.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'sys/sys/module.h') diff --git a/sys/sys/module.h b/sys/sys/module.h index a5799954147a..05f48c297b27 100644 --- a/sys/sys/module.h +++ b/sys/sys/module.h @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: module.h,v 1.8 1999/01/27 21:50:00 dillon Exp $ + * $Id: module.h,v 1.9 1999/01/29 06:47:53 dillon Exp $ */ #ifndef _SYS_MODULE_H_ @@ -67,11 +67,7 @@ typedef union modspecific { SYSINIT(name##module, sub, order, module_register_init, &data) \ struct __hack -#define C_DECLARE_MODULE(name, data, sub, order) \ - C_SYSINIT(name##module, sub, order, module_register_init, &data) \ - struct __hack - -void module_register_init(void *data); +void module_register_init(const void *data); int module_register(const char *name, modeventhand_t callback, void *arg, void *file); module_t module_lookupbyname(const char *name); -- cgit v1.2.3