]> git.lizzy.rs Git - plan9front.git/commitdiff
libauth: remove unneeded includes for authsrv.h, avoid pulling in dependency for...
authorcinap_lenrek <cinap_lenrek@felloff.net>
Sun, 10 Apr 2016 18:24:20 +0000 (20:24 +0200)
committercinap_lenrek <cinap_lenrek@felloff.net>
Sun, 10 Apr 2016 18:24:20 +0000 (20:24 +0200)
sys/src/libauth/auth_attr.c
sys/src/libauth/auth_challenge.c
sys/src/libauth/auth_proxy.c
sys/src/libauth/auth_respond.c

index 8842590a98d99c9b63ff6ed9110a66535a86505f..2acc32f7990c17677e6188018132606e53f76ce1 100644 (file)
@@ -1,7 +1,6 @@
 #include <u.h>
 #include <libc.h>
 #include <auth.h>
-#include <authsrv.h>
 #include "authlocal.h"
 
 Attr*
index 298f5f1b214dfae2ad019c29101a7e60faacaa00..d21841a0552fd004bdf200bca599c26f0eb1dd8e 100644 (file)
@@ -1,7 +1,6 @@
 #include <u.h>
 #include <libc.h>
 #include <auth.h>
-#include <authsrv.h>
 #include "authlocal.h"
 
 Chalstate*
index 004e57332a3374e6342f3a13ee6ff762f426d685..68987140a89d7fb9a1dd43d9c7683d558223deca 100644 (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");
index 910f06b2837962a1b2d693e43ed23aae9295e3c9..bc9fd20347bfd65ce87f2038f1dcb0210b63b9a6 100644 (file)
@@ -1,7 +1,6 @@
 #include <u.h>
 #include <libc.h>
 #include <auth.h>
-#include <authsrv.h>
 #include "authlocal.h"
 
 enum {