From a9b4c07566f15990a9aa755d6887e81b3b6d0471 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 25 May 2002 00:10:36 +0000 Subject: 2002-05-07 Roland McGrath * type.c (itMakeNaturalType): New function. (init_type): Use that instead of itMakeIntType for itWaitTimeType and itMsgOptionType--give them each their special typedef names. * routine.c (rtCheckArgTypes): Use itCheckNaturalType for rtMsgOption. --- routine.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'routine.c') diff --git a/routine.c b/routine.c index 70707bd..15ff672 100644 --- a/routine.c +++ b/routine.c @@ -1,25 +1,25 @@ -/* +/* * Mach Operating System * Copyright (c) 1992,1991,1990 Carnegie Mellon University * All Rights Reserved. - * + * * Permission to use, copy, modify and distribute this software and its * documentation is hereby granted, provided that both the copyright * notice and this permission notice appear in all copies of the * software, derivative works or modified versions, and any portions * thereof, and that both notices appear in supporting documentation. - * + * * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. - * + * * Carnegie Mellon requests users of this software to return to - * + * * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU * School of Computer Science * Carnegie Mellon University * Pittsburgh PA 15213-3890 - * + * * any improvements or extensions that they make and grant Carnegie Mellon * the rights to redistribute these changes. */ @@ -957,13 +957,13 @@ rtCheckArgTypes(routine_t *rt) if ((rt->rtWaitTime != argNULL) && (rt->rtWaitTime->argType != itNULL)) - itCheckIntType(rt->rtWaitTime->argName, - rt->rtWaitTime->argType); + itCheckNaturalType(rt->rtWaitTime->argName, + rt->rtWaitTime->argType); if ((rt->rtMsgOption != argNULL) && (rt->rtMsgOption->argType != itNULL)) - itCheckIntType(rt->rtMsgOption->argName, - rt->rtMsgOption->argType); + itCheckNaturalType(rt->rtMsgOption->argName, + rt->rtMsgOption->argType); if ((rt->rtMsgSeqno != argNULL) && (rt->rtMsgSeqno->argType != itNULL)) -- cgit v1.2.3