diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2018-02-19 08:59:54 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2018-02-19 08:59:54 +0000 |
commit | f44ff454cd0da5e1133d8f57877628c13d346dc5 (patch) | |
tree | a859411ce3744fe07063c4159a939baca3f01e49 /sys/arch/hppa | |
parent | 4272ed38eae20e0ca38fa48ddd2fcc64c78d02ec (diff) |
Remove almost unused `flags' argument of suser().
The account flag `ASU' will no longer be set but that makes suser()
mpsafe since it no longer mess with a per-process field.
No objection from millert@, ok tedu@, bluhm@
Diffstat (limited to 'sys/arch/hppa')
-rw-r--r-- | sys/arch/hppa/dev/pdc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/hppa/dev/pdc.c b/sys/arch/hppa/dev/pdc.c index 4ec046c820f..7835c64cc68 100644 --- a/sys/arch/hppa/dev/pdc.c +++ b/sys/arch/hppa/dev/pdc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pdc.c,v 1.39 2011/08/16 17:26:04 kettenis Exp $ */ +/* $OpenBSD: pdc.c,v 1.40 2018/02/19 08:59:52 mpi Exp $ */ /* * Copyright (c) 1998-2003 Michael Shalayeff @@ -223,7 +223,7 @@ pdcopen(dev, flag, mode, p) ttsetwater(tp); setuptimeout = 1; - } else if (tp->t_state&TS_XCLUDE && suser(p, 0) != 0) { + } else if (tp->t_state&TS_XCLUDE && suser(p) != 0) { splx(s); return (EBUSY); } |