From c6b3b8b14f25807d64829dca2eb1320b7667a803 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Tue, 20 Dec 2022 21:26:04 -0800 Subject: [PATCH] smyrna clear_viewport: remove shadowing of 'view' global --- cmd/smyrna/viewport.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cmd/smyrna/viewport.c b/cmd/smyrna/viewport.c index 4263431ae..961f2722a 100644 --- a/cmd/smyrna/viewport.c +++ b/cmd/smyrna/viewport.c @@ -38,10 +38,9 @@ ViewInfo *view; /* these two global variables should be wrapped in something else */ GtkMessageDialog *Dlg; -static void clear_viewport(ViewInfo * view) -{ - if (view->graphCount) - agclose(view->g[view->activeGraph]); +static void clear_viewport(ViewInfo *vi) { + if (vi->graphCount) + agclose(vi->g[vi->activeGraph]); } static void *get_glut_font(int ind) { -- 2.40.0