static long _ioasgetticket(va_list *arg) { int asfd; char *trbuf; char *tbuf; asfd = va_arg(*arg, int); trbuf = va_arg(*arg, char*); tbuf = va_arg(*arg, char*); return _asgetticket(asfd, trbuf, tbuf); }
static int getastickets(Ticketreq *tr, char *trbuf, char *tbuf) { int asfd, rv; char *dom; dom = tr->authdom; asfd = authdial(nil, dom); if(asfd < 0) return -1; rv = _asgetticket(asfd, trbuf, tbuf); close(asfd); return rv; }