From f711d546d27edc6115841ef780df0252d44a996d Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Tue, 27 Apr 1999 11:18:52 +0000 Subject: Suser() simplification: 1: s/suser/suser_xxx/ 2: Add new function: suser(struct proc *), prototyped in . 3: s/suser_xxx(\([a-zA-Z0-9_]*\)->p_ucred, \&\1->p_acflag)/suser(\1)/ The remaining suser_xxx() calls will be scrutinized and dealt with later. There may be some unneeded #include , but they are left as an exercise for Bruce. More changes to the suser() API will come along with the "jail" code. --- sys/net/if_tun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/net/if_tun.c') diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c index e9725bc35dce..92c156d049b3 100644 --- a/sys/net/if_tun.c +++ b/sys/net/if_tun.c @@ -150,7 +150,7 @@ tunopen(dev, flag, mode, p) struct tun_softc *tp; register int unit, error; - error = suser(p->p_ucred, &p->p_acflag); + error = suser(p); if (error) return (error); -- cgit v1.3