From 115a0e39b87c90f4fa1f6ca57c3047421e691436 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Wed, 28 Apr 2021 19:10:28 -0700 Subject: [PATCH] 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. --- cmd/gvmap/cluster.c | 2 +- cmd/gvmap/gvmap.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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' */ -- 2.40.0