From 759f3dcf720c26bb811f0250fa503b2a2e43a98f Mon Sep 17 00:00:00 2001 From: mglocker Date: Wed, 17 Feb 2021 08:51:40 +0000 Subject: [PATCH] Call 'struct process' parameters 'pr' to distinguish from 'struct proc' parameters which are usually called 'p'. Spotted and ok anton@ --- sys/dev/video.c | 8 ++++---- 1 file 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 @@ -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); } -- 2.20.1