]> granicus.if.org Git - graphviz/commitdiff
smyrna clear_viewport: remove shadowing of 'view' global
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 21 Dec 2022 05:26:04 +0000 (21:26 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 24 Dec 2022 19:42:15 +0000 (11:42 -0800)
cmd/smyrna/viewport.c

index 4263431ae624a6823ecb0098c98c16343dbe0b71..961f2722a6325fe7b8bf29ca7f51a2b58a0794b2 100644 (file)
@@ -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)
 {