From d71cf7ff1be5fe153dbee4ab8ea646dcd23406e0 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sun, 10 Apr 2016 20:24:20 +0200 Subject: [PATCH] libauth: remove unneeded includes for authsrv.h, avoid pulling in dependency for rerrstr() --- sys/src/libauth/auth_attr.c | 1 - sys/src/libauth/auth_challenge.c | 1 - sys/src/libauth/auth_proxy.c | 4 ++-- sys/src/libauth/auth_respond.c | 1 - 4 files changed, 2 insertions(+), 5 deletions(-) diff --git a/sys/src/libauth/auth_attr.c b/sys/src/libauth/auth_attr.c index 8842590a9..2acc32f79 100644 --- a/sys/src/libauth/auth_attr.c +++ b/sys/src/libauth/auth_attr.c @@ -1,7 +1,6 @@ #include #include #include -#include #include "authlocal.h" Attr* diff --git a/sys/src/libauth/auth_challenge.c b/sys/src/libauth/auth_challenge.c index 298f5f1b2..d21841a05 100644 --- a/sys/src/libauth/auth_challenge.c +++ b/sys/src/libauth/auth_challenge.c @@ -1,7 +1,6 @@ #include #include #include -#include #include "authlocal.h" Chalstate* diff --git a/sys/src/libauth/auth_proxy.c b/sys/src/libauth/auth_proxy.c index 004e57332..68987140a 100644 --- a/sys/src/libauth/auth_proxy.c +++ b/sys/src/libauth/auth_proxy.c @@ -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"); diff --git a/sys/src/libauth/auth_respond.c b/sys/src/libauth/auth_respond.c index 910f06b28..bc9fd2034 100644 --- a/sys/src/libauth/auth_respond.c +++ b/sys/src/libauth/auth_respond.c @@ -1,7 +1,6 @@ #include #include #include -#include #include "authlocal.h" enum {