aboutsummaryrefslogtreecommitdiffstats
path: root/src/cg-limits.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-12-01 03:26:40 +0100
committerMattias Andrée <maandree@kth.se>2016-12-01 03:26:40 +0100
commit3304923d8b520746bf03ffadb27b7feeb7229891 (patch)
tree89d09f3f38b5ed95d0821b0afed0f9e0a304e1f9 /src/cg-limits.c
parentFix warnings (diff)
downloadcg-tools-3304923d8b520746bf03ffadb27b7feeb7229891.tar.gz
cg-tools-3304923d8b520746bf03ffadb27b7feeb7229891.tar.bz2
cg-tools-3304923d8b520746bf03ffadb27b7feeb7229891.tar.xz
Fix -Wshadow warning
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/cg-limits.c')
-rw-r--r--src/cg-limits.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cg-limits.c b/src/cg-limits.c
index 6a071c7..bf8ba83 100644
--- a/src/cg-limits.c
+++ b/src/cg-limits.c
@@ -485,21 +485,21 @@ static int parse_contrast_file(const char* restrict pathname)
* @param argv `NULL` terminated list of unparsed arguments
* @param method The argument associated with the "-M" option
* @param site The argument associated with the "-S" option
- * @param crtcs The arguments associated with the "-c" options, `NULL`-terminated
+ * @param crtcs_ The arguments associated with the "-c" options, `NULL`-terminated
* @param prio The argument associated with the "-p" option
* @param rule The argument associated with the "-R" option
* @return Zero on success, -1 on error
*/
int handle_args(int argc, char* argv[], char* method, char* site,
- char** crtcs, char* prio, char* rule)
+ char** crtcs_, char* prio, char* rule)
{
int free_Bflag = 0, free_Cflag = 0, saved_errno;
int q = xflag + dflag;
q += (method != NULL) && !strcmp(method, "?");
q += (prio != NULL) && !strcmp(prio, "?");
q += (rule != NULL) && (!strcmp(rule, "?") || !strcmp(rule, "??"));
- for (; *crtcs; crtcs++)
- q += !strcmp(*crtcs, "?");
+ for (; *crtcs_; crtcs_++)
+ q += !strcmp(*crtcs_, "?");
if ((q > 1) || (xflag && ((Bflag != NULL) || (Cflag != NULL) || (argc > 0) || (prio != NULL))))
usage();
if ((Bflag || Cflag) && argc)