From: Matthew Fernandez Date: Thu, 29 Apr 2021 02:10:28 +0000 (-0700) Subject: gvmap: fix type of variables used for interacting with getopt X-Git-Tag: 2.47.2~26^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=115a0e39b87c90f4fa1f6ca57c3047421e691436;p=graphviz gvmap: fix type of variables used for interacting with getopt Similar to the prior commit. Squashes two -Wsign-compare warnings and two -Wsign-conversion warnings. --- diff --git a/cmd/gvmap/cluster.c b/cmd/gvmap/cluster.c index b0ab43fc8..e84a5c047 100644 --- a/cmd/gvmap/cluster.c +++ b/cmd/gvmap/cluster.c @@ -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; diff --git a/cmd/gvmap/gvmap.c b/cmd/gvmap/gvmap.c index 5fbe50e88..5c94fcf1c 100644 --- a/cmd/gvmap/gvmap.c +++ b/cmd/gvmap/gvmap.c @@ -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' */