diff options
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/cz.c | 4 | ||||
-rw-r--r-- | sys/dev/pci/if_lmc.c | 4 | ||||
-rw-r--r-- | sys/dev/pci/wdt.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/pci/cz.c b/sys/dev/pci/cz.c index 0b7178c2ca7..dfd8bc4bce5 100644 --- a/sys/dev/pci/cz.c +++ b/sys/dev/pci/cz.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cz.c,v 1.7 2003/08/11 05:03:10 mickey Exp $ */ +/* $OpenBSD: cz.c,v 1.8 2003/08/15 20:32:17 tedu Exp $ */ /* $NetBSD: cz.c,v 1.15 2001/01/20 19:10:36 thorpej Exp $ */ /*- @@ -1174,7 +1174,7 @@ czttyioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p) break; case TIOCSFLAGS: - error = suser(p->p_ucred, &p->p_acflag); + error = suser(p, 0); if (error) break; sc->sc_swflags = *(int *)data; diff --git a/sys/dev/pci/if_lmc.c b/sys/dev/pci/if_lmc.c index e6df0b65203..2b2d581e870 100644 --- a/sys/dev/pci/if_lmc.c +++ b/sys/dev/pci/if_lmc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_lmc.c,v 1.15 2002/06/30 13:04:36 itojun Exp $ */ +/* $OpenBSD: if_lmc.c,v 1.16 2003/08/15 20:32:17 tedu Exp $ */ /* $NetBSD: if_lmc.c,v 1.1 1999/03/25 03:32:43 explorer Exp $ */ /*- @@ -1216,7 +1216,7 @@ lmc_ifioctl(struct ifnet * ifp, ioctl_cmd_t cmd, caddr_t data) break; case LMCIOCSINFO: - error = suser(p->p_ucred, &p->p_acflag); + error = suser(p, 0); if (error) goto out; diff --git a/sys/dev/pci/wdt.c b/sys/dev/pci/wdt.c index 9d1a8f33afa..0f93ddeb3bf 100644 --- a/sys/dev/pci/wdt.c +++ b/sys/dev/pci/wdt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wdt.c,v 1.4 2002/03/14 01:27:00 millert Exp $ */ +/* $OpenBSD: wdt.c,v 1.5 2003/08/15 20:32:17 tedu Exp $ */ /*- * Copyright (c) 1998,1999 Alex Nash @@ -579,7 +579,7 @@ wdt_sched (struct wdt_softc *wdt, struct proc *p) * if the counters aren't reloaded within wdt->timeout_secs * seconds. */ - if ((error = suser(p->p_ucred, &p->p_acflag))) + if ((error = suser(p, 0))) return(error); /* block out the timeout handler */ |