diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-04-10 20:24:20 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-04-10 20:24:20 +0200 |
commit | d71cf7ff1be5fe153dbee4ab8ea646dcd23406e0 (patch) | |
tree | ca4af21f19ec1c6107f2b7b130c680cfac03d39b /sys/src/libauth | |
parent | 44cbb293088840d5813a69c6dc850b0444c4e27b (diff) |
libauth: remove unneeded includes for authsrv.h, avoid pulling in dependency for rerrstr()
Diffstat (limited to 'sys/src/libauth')
-rw-r--r-- | sys/src/libauth/auth_attr.c | 1 | ||||
-rw-r--r-- | sys/src/libauth/auth_challenge.c | 1 | ||||
-rw-r--r-- | sys/src/libauth/auth_proxy.c | 4 | ||||
-rw-r--r-- | 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 <u.h> #include <libc.h> #include <auth.h> -#include <authsrv.h> #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 <u.h> #include <libc.h> #include <auth.h> -#include <authsrv.h> #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 <u.h> #include <libc.h> #include <auth.h> -#include <authsrv.h> #include "authlocal.h" enum { |