From baef75bfc55b19ae2f4f1a5f09c82d35539d5637 Mon Sep 17 00:00:00 2001 From: okan Date: Wed, 20 Aug 2014 15:15:29 +0000 Subject: Purely mechanical; unify 'num', 'no' and 'shortcut'. --- screen.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'screen.c') diff --git a/screen.c b/screen.c index 6018a5d..53c33f6 100644 --- a/screen.c +++ b/screen.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: screen.c,v 1.62 2014/08/20 12:35:39 okan Exp $ + * $OpenBSD: screen.c,v 1.63 2014/08/20 15:15:29 okan Exp $ */ #include @@ -142,7 +142,7 @@ screen_update_geometry(struct screen_ctx *sc) { XineramaScreenInfo *info = NULL; struct region_ctx *region; - int info_no = 0, i; + int info_num = 0, i; sc->view.x = 0; sc->view.y = 0; @@ -156,13 +156,13 @@ screen_update_geometry(struct screen_ctx *sc) /* RandR event may have a CTRC added or removed. */ if (XineramaIsActive(X_Dpy)) - info = XineramaQueryScreens(X_Dpy, &info_no); + info = XineramaQueryScreens(X_Dpy, &info_num); while ((region = TAILQ_FIRST(&sc->regionq)) != NULL) { TAILQ_REMOVE(&sc->regionq, region, entry); free(region); } - for (i = 0; i < info_no; i++) { + for (i = 0; i < info_num; i++) { region = xmalloc(sizeof(*region)); region->num = i; region->area.x = info[i].x_org; -- cgit v1.2.3-2-gb3c3