diff options
author | dillon <dillon@FreeBSD.org> | 1999-01-29 08:36:45 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 1999-01-29 08:36:45 +0000 |
commit | 1c7115fb5f80e294b4cc5eb1ea863df6dd3024f4 (patch) | |
tree | b5b52097389338ac55748d63bf92af2d4a36e4aa /sys/sys/module.h | |
parent | cf8e8cebcc0d1caa79eb2e92784961cfe301f5bb (diff) | |
download | FreeBSD-src-1c7115fb5f80e294b4cc5eb1ea863df6dd3024f4.zip FreeBSD-src-1c7115fb5f80e294b4cc5eb1ea863df6dd3024f4.tar.gz |
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.
Diffstat (limited to 'sys/sys/module.h')
-rw-r--r-- | sys/sys/module.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/sys/module.h b/sys/sys/module.h index a579995..05f48c2 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); |