]> granicus.if.org Git - graphviz/commitdiff
gvmap: fix type of variables used for interacting with getopt
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 29 Apr 2021 02:10:28 +0000 (19:10 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 5 May 2021 04:45:47 +0000 (21:45 -0700)
Similar to the prior commit. Squashes two -Wsign-compare warnings and two
-Wsign-conversion warnings.

cmd/gvmap/cluster.c
cmd/gvmap/gvmap.c

index b0ab43fc8a23b46ca0aeefe65bb0fd41473b8e2b..e84a5c047288a16df2d23c3fa95978b77f0d9023 100644 (file)
@@ -88,7 +88,7 @@ static FILE *openFile(char *name, char *mode, char* cmd)
 
 static void init(int argc, char *argv[], opts_t* opts) {
   char* cmd = argv[0];
-  unsigned int c;
+  int c;
   int v;
 
   opts->maxcluster = 0;
index 5fbe50e88d0cbebbfea252af92bf7ffaab5e4fd3..5c94fcf1c69f6b0d5042bf3acef86afe9df12314 100644 (file)
@@ -208,7 +208,7 @@ static void
 init(int argc, char **argv, params_t* pm)
 {
   char* cmd = argv[0];
-  unsigned int c;
+  int c;
   real s;
   int v, r;
   char stmp[3];  /* two character string plus '\0' */