summaryrefslogtreecommitdiff
path: root/routine.c
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2006-11-30 00:01:21 +0000
committerThomas Schwinge <tschwinge@gnu.org>2006-11-30 00:01:21 +0000
commite982c14bc34a48529ca0db1c016a768cce01e115 (patch)
treebdf201b23b9ec594b4e05704e2119b2e664b10a8 /routine.c
parent53280ebcfd46a129f34d6853a093c3cb425a068a (diff)
2006-11-29 Thomas Schwinge <tschwinge@gnu.org>
Fix compiler, flex and bison warnings. * error.c: Include <stdlib.h>. * lexxer.h (yylex): Add declaration. * migcom.c: Include <stdlib.h>. (main): Set USER, SHEADER and IHEADER to `NULL' by default. (myfclose): Add lost conversion specifications. * parser.h (yyerror): Add declaration. * routine.c (rtPrintArg, rtCheckRoutine): Add braces to avoid ambiguousness. * server.c (WriteSymTabEntries): Make NUM an `u_int'. * user.c (WriteUserIndividual): Add a `default' case in a switch statement and add lost conversion specifications. * lexxer.l: Set option `nounput'. * parser.y (%left): Change commas to spaces.
Diffstat (limited to 'routine.c')
-rw-r--r--routine.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/routine.c b/routine.c
index c34b91f..fcdfaf1 100644
--- a/routine.c
+++ b/routine.c
@@ -236,33 +236,41 @@ rtPrintArg(register const argument_t *arg)
break;
default:
if (akCheck(arg->argKind, akbRequest))
+ {
if (akCheck(arg->argKind, akbSend))
printf("In");
else
printf("(In)");
+ }
if (akCheck(arg->argKind, akbReply))
+ {
if (akCheck(arg->argKind, akbReturn))
printf("Out");
else
printf("(Out)");
+ }
printf("\t");
}
printf("\t%s: %s", arg->argName, it->itName);
if (arg->argDeallocate != it->itDeallocate)
+ {
if (arg->argDeallocate == d_YES)
printf(", Dealloc");
else if (arg->argDeallocate == d_MAYBE)
printf(", Dealloc[]");
else
printf(", NotDealloc");
+ }
if (arg->argLongForm != it->itLongForm)
+ {
if (arg->argLongForm)
printf(", IsLong");
else
printf(", IsNotLong");
+ }
if (arg->argServerCopy)
printf(", ServerCopy");
@@ -1265,21 +1273,27 @@ rtCheckRoutine(register routine_t *rt)
doesn't have its own args and the user specified global values. */
if (rt->rtUReplyPort == argNULL)
+ {
if (rt->rtOneWay)
rtAddDummyReplyPort(rt, itZeroReplyPortType, 1);
else
rtAddDummyReplyPort(rt, itRealReplyPortType, 1);
+ }
if (rt->rtSReplyPort == argNULL)
+ {
if (rt->rtOneWay)
rtAddDummyReplyPort(rt, itZeroReplyPortType, 0);
else
rtAddDummyReplyPort(rt, itRealReplyPortType, 0);
+ }
if (rt->rtMsgOption == argNULL)
+ {
if (MsgOption == strNULL)
rtAddMsgOption(rt, "MACH_MSG_OPTION_NONE");
else
rtAddMsgOption(rt, MsgOption);
+ }
if ((rt->rtWaitTime == argNULL) &&
(WaitTime != strNULL))