From e982c14bc34a48529ca0db1c016a768cce01e115 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Thu, 30 Nov 2006 00:01:21 +0000 Subject: 2006-11-29 Thomas Schwinge Fix compiler, flex and bison warnings. * error.c: Include . * lexxer.h (yylex): Add declaration. * migcom.c: Include . (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. --- routine.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'routine.c') 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)) -- cgit v1.2.3