shithub: riscv

Download patch

ref: d71cf7ff1be5fe153dbee4ab8ea646dcd23406e0
parent: 44cbb293088840d5813a69c6dc850b0444c4e27b
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 {