From 648bb6f75a801e6d605fcd061f0b14fecc07a8be Mon Sep 17 00:00:00 2001 From: rsc Date: Tue, 8 Feb 2005 20:58:10 +0000 Subject: lucho changes --- src/libauth/auth_wep.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/libauth/auth_wep.c') diff --git a/src/libauth/auth_wep.c b/src/libauth/auth_wep.c index afde46b9..75d820a4 100644 --- a/src/libauth/auth_wep.c +++ b/src/libauth/auth_wep.c @@ -11,7 +11,6 @@ auth_wep(char *dev, char *fmt, ...) { AuthRpc *rpc; char *params, *p; - int fd; va_list arg; int rv; @@ -22,11 +21,7 @@ auth_wep(char *dev, char *fmt, ...) return rv; } - fd = open("/mnt/factotum/rpc", ORDWR); - if(fd < 0) - return rv; - - rpc = auth_allocrpc(fd); + rpc = auth_allocrpc(); if(rpc != nil){ quotefmtinstall(); /* just in case */ va_start(arg, fmt); @@ -44,7 +39,5 @@ auth_wep(char *dev, char *fmt, ...) } auth_freerpc(rpc); } - close(fd); - return rv; } -- cgit v1.2.3