summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorart <art@openbsd.org>1999-02-15 02:57:04 +0000
committerart <art@openbsd.org>1999-02-15 02:57:04 +0000
commitf2c66449826365da99bfb269f3cd7688295004b1 (patch)
tree8b74a7af0a86f1857636c9c8b44f689aa0baf832
parentwhen allocating sack blocks check for failing malloc(), if it fails (diff)
downloadwireguard-openbsd-f2c66449826365da99bfb269f3cd7688295004b1.tar.xz
wireguard-openbsd-f2c66449826365da99bfb269f3cd7688295004b1.zip
use an empty VIOCSETTOK instead of the probe call
-rw-r--r--kerberosIV/kafs/afssys.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/kerberosIV/kafs/afssys.c b/kerberosIV/kafs/afssys.c
index e95057d1704..5a938e27d75 100644
--- a/kerberosIV/kafs/afssys.c
+++ b/kerberosIV/kafs/afssys.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: afssys.c,v 1.7 1998/09/23 21:25:39 art Exp $ */
+/* $OpenBSD: afssys.c,v 1.8 1999/02/15 02:57:04 art Exp $ */
/* $KTH: afssys.c,v 1.57 1998/05/09 17:19:03 joda Exp $ */
/*
@@ -85,5 +85,9 @@ k_setpag(void)
int
k_hasafs(void)
{
- return xfspioctl(AFSCALL_PROBE, NULL, 0, NULL, 0) == 0;
+ struct ViceIoctl parms;
+
+ bzero(&parms, sizeof(struct ViceIoctl));
+
+ return k_pioctl(NULL, VIOCSETTOK, &parms, 0);
}