shithub: riscv

ref: 1a73b594e684623c9ea1b72141f4e70ee913740b
dir: /sys/src/libauthsrv/_asrequest.c/

View raw version
#include <u.h>
#include <libc.h>
#include <authsrv.h>

int
_asrequest(int fd, Ticketreq *tr)
{
	char trbuf[TICKREQLEN];
	int n;

	n = convTR2M(tr, trbuf, sizeof(trbuf));
	if(write(fd, trbuf, n) != n)
		return -1;

	return 0;
}