summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_module.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-07-14 05:09:48 +0000
committerbde <bde@FreeBSD.org>1998-07-14 05:09:48 +0000
commit55ddae5a80992ccb5383ea0c6f2f7055694716b7 (patch)
tree7658bd93d378ee99a6ee447cba3e12c7e55ab765 /sys/kern/kern_module.c
parent95415c676d9622fd2a2dda4dea047790c204c1eb (diff)
downloadFreeBSD-src-55ddae5a80992ccb5383ea0c6f2f7055694716b7.zip
FreeBSD-src-55ddae5a80992ccb5383ea0c6f2f7055694716b7.tar.gz
Changed to the C9x draft spelling of the (unsigned) integral type
suitable for holding object pointers (ptrint_t -> uintptr_t). Added corresponding signed type (intptr_t). Changed/added corresponding non-C9x types for function pointers to match. Don't use nonstandard types to implement these types, and don't comment on them in <machine/types.h>.
Diffstat (limited to 'sys/kern/kern_module.c')
-rw-r--r--sys/kern/kern_module.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/kern_module.c b/sys/kern/kern_module.c
index 0a752bb..948fa79 100644
--- a/sys/kern/kern_module.c
+++ b/sys/kern/kern_module.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: kern_module.c,v 1.6 1997/11/07 08:52:56 phk Exp $
+ * $Id: kern_module.c,v 1.7 1998/07/11 07:45:40 bde Exp $
*/
#include <sys/param.h>
@@ -81,10 +81,9 @@ module_register_init(void *arg)
moduledata_t* data = (moduledata_t*) arg;
int error;
-#define fptrint_t unsigned /* XXX */
if (error = module_register(data->name, data->evhand, data->priv))
printf("module_register_init: module_register(%s, %lx, %p) returned %d",
- data->name, (u_long)(fptrint_t)data->evhand, data->priv, error);
+ data->name, (u_long)(uintfptr_t)data->evhand, data->priv, error);
}
int
OpenPOWER on IntegriCloud