]> granicus.if.org Git - graphviz/commitdiff
smyrna parseArgs: remove shadowing of 'view' global
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 7 Sep 2022 04:10:37 +0000 (21:10 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 10 Sep 2022 00:11:28 +0000 (17:11 -0700)
cmd/smyrna/main.c

index 1196c3a0dc10a5d12b769556618761445de5ae24..0c76ac46b96fff1721c1de0f2090a145846f44b4 100644 (file)
@@ -88,20 +88,19 @@ static char *Info[] = {
 };
 
 
-static char *parseArgs(int argc, char *argv[], ViewInfo * view)
-{
+static char *parseArgs(int argc, char *argv[], ViewInfo *viewinfo) {
     int c;
 
     while ((c = getopt(argc, argv, ":eKf:txvV?")) != -1) {
        switch (c) {
        case 'e':
-           view->drawSplines = 1;
+           viewinfo->drawSplines = 1;
            break;
        case 'v': // FIXME: deprecate and remove -v in future
            break;
        case 'f':
-           view->guiMode=GUI_FULLSCREEN;
-           view->optArg=optarg;
+           viewinfo->guiMode=GUI_FULLSCREEN;
+           viewinfo->optArg=optarg;
            break;
 
        case 'V':