]> granicus.if.org Git - graphviz/commitdiff
fix type of variable used for interacting with getopt
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 19 Apr 2021 00:52:45 +0000 (17:52 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 25 Apr 2021 18:58:21 +0000 (11:58 -0700)
Fixes some -Wsign-conversion and -Wsign-compare warnings.

cmd/smyrna/main.c

index 88f51cafaf2912b68a7ad5f7d3856f80239247fa..40e419d3336e78d97a5861bc80aa2c016b483ac0 100644 (file)
@@ -99,7 +99,7 @@ static char *Info[] = {
 
 static char *parseArgs(int argc, char *argv[], ViewInfo * view)
 {
-    unsigned int c;
+    int c;
 
     while ((c = getopt(argc, argv, ":eKf:txvV?")) != -1) {
        switch (c) {