summaryrefslogtreecommitdiffstats
path: root/src/libauth/auth_wep.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-02-08 20:58:10 +0000
committerrsc <devnull@localhost>2005-02-08 20:58:10 +0000
commit648bb6f75a801e6d605fcd061f0b14fecc07a8be (patch)
treeae995dfa5c1807dfa8902f5120ef6933911aebb5 /src/libauth/auth_wep.c
parentfa467fbe51e3aba23fce6639afd8939c046c8c2d (diff)
downloadplan9port-648bb6f75a801e6d605fcd061f0b14fecc07a8be.tar.gz
plan9port-648bb6f75a801e6d605fcd061f0b14fecc07a8be.zip
lucho changes
Diffstat (limited to 'src/libauth/auth_wep.c')
-rw-r--r--src/libauth/auth_wep.c9
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;
}