diff options
author | Marcus Glocker <mglocker@cvs.openbsd.org> | 2021-02-17 08:51:41 +0000 |
---|---|---|
committer | Marcus Glocker <mglocker@cvs.openbsd.org> | 2021-02-17 08:51:41 +0000 |
commit | 52d5b4cfa82789e51fad295420999673313aa360 (patch) | |
tree | 5c7e94c92d76502036443c2aef49376f688ed7ae /sys/dev/video.c | |
parent | 2812e52598aed2c447bcd19fe12b65a26594b3af (diff) |
Call 'struct process' parameters 'pr' to distinguish from 'struct proc'
parameters which are usually called 'p'.
Spotted and ok anton@
Diffstat (limited to 'sys/dev/video.c')
-rw-r--r-- | sys/dev/video.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/video.c b/sys/dev/video.c index b6bde915f57..57d960a7fe2 100644 --- a/sys/dev/video.c +++ b/sys/dev/video.c @@ -1,4 +1,4 @@ -/* $OpenBSD: video.c,v 1.51 2021/02/17 07:08:15 mglocker Exp $ */ +/* $OpenBSD: video.c,v 1.52 2021/02/17 08:51:40 mglocker Exp $ */ /* * Copyright (c) 2008 Robert Nagy <robert@openbsd.org> @@ -604,15 +604,15 @@ video_stop(struct video_softc *sc) } int -video_claim(struct video_softc *sc, struct process *p) +video_claim(struct video_softc *sc, struct process *pr) { - if (sc->sc_owner != NULL && sc->sc_owner != p) { + if (sc->sc_owner != NULL && sc->sc_owner != pr) { DPRINTF(1, "%s: already owned=%p\n", __func__, sc->sc_owner); return (EBUSY); } if (sc->sc_owner == NULL) { - sc->sc_owner = p; + sc->sc_owner = pr; DPRINTF(1, "%s: new owner=%p\n", __func__, sc->sc_owner); } |