diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-08-20 15:47:49 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-08-20 15:47:49 +0200 |
commit | 78c45541eb66a661f4e45c2f86bb5ac37de2408b (patch) | |
tree | 37cf578d06178f12dd2dbc8991df2d1a80eb28b4 /sys/src/libauthsrv/_asrequest.c | |
parent | a40c4006d21d6e553d805da7d1a297bdce42f571 (diff) |
libauthsrv: add missing files (thanks mischief)
Diffstat (limited to 'sys/src/libauthsrv/_asrequest.c')
-rw-r--r-- | sys/src/libauthsrv/_asrequest.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sys/src/libauthsrv/_asrequest.c b/sys/src/libauthsrv/_asrequest.c new file mode 100644 index 000000000..7479c4806 --- /dev/null +++ b/sys/src/libauthsrv/_asrequest.c @@ -0,0 +1,16 @@ +#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; +} |