libauth: remove unneeded includes for authsrv.h, avoid pulling in dependency for rerrstr()

This commit is contained in:
cinap_lenrek 2016-04-10 20:24:20 +02:00
parent 44cbb29308
commit d71cf7ff1b
4 changed files with 2 additions and 5 deletions

View file

@ -1,7 +1,6 @@
#include <u.h>
#include <libc.h>
#include <auth.h>
#include <authsrv.h>
#include "authlocal.h"
Attr*

View file

@ -1,7 +1,6 @@
#include <u.h>
#include <libc.h>
#include <auth.h>
#include <authsrv.h>
#include "authlocal.h"
Chalstate*

View file

@ -128,8 +128,8 @@ fauth_proxy(int fd, AuthRpc *rpc, AuthGetkey *getkey, char *params)
return nil;
}
rerrstr(oerr, sizeof oerr);
werrstr("UNKNOWN AUTH ERROR");
strcpy(oerr, "UNKNOWN AUTH ERROR");
errstr(oerr, sizeof oerr);
if(dorpc(rpc, "start", params, strlen(params), getkey) != ARok){
werrstr("fauth_proxy start: %r");

View file

@ -1,7 +1,6 @@
#include <u.h>
#include <libc.h>
#include <auth.h>
#include <authsrv.h>
#include "authlocal.h"
enum {