ref: 90a8a65798f9bf53a8cc833024608abbbeca9ea9
parent: c484d6632fd12a5500acf91204b3eb9855ae6f80
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Apr 10 16:24:20 EDT 2016
libauth: remove unneeded includes for authsrv.h, avoid pulling in dependency for rerrstr()
--- a/sys/src/libauth/auth_attr.c
+++ b/sys/src/libauth/auth_attr.c
@@ -1,7 +1,6 @@
#include <u.h>
#include <libc.h>
#include <auth.h>
-#include <authsrv.h>
#include "authlocal.h"
Attr*
--- a/sys/src/libauth/auth_challenge.c
+++ b/sys/src/libauth/auth_challenge.c
@@ -1,7 +1,6 @@
#include <u.h>
#include <libc.h>
#include <auth.h>
-#include <authsrv.h>
#include "authlocal.h"
Chalstate*
--- a/sys/src/libauth/auth_proxy.c
+++ b/sys/src/libauth/auth_proxy.c
@@ -128,8 +128,8 @@
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");--- a/sys/src/libauth/auth_respond.c
+++ b/sys/src/libauth/auth_respond.c
@@ -1,7 +1,6 @@
#include <u.h>
#include <libc.h>
#include <auth.h>
-#include <authsrv.h>
#include "authlocal.h"
enum {--
⑨