diff options
Diffstat (limited to 'src/libauth/auth_wep.c')
-rw-r--r-- | src/libauth/auth_wep.c | 9 |
1 files changed, 1 insertions, 8 deletions
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; } |