From 3304923d8b520746bf03ffadb27b7feeb7229891 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 1 Dec 2016 03:26:40 +0100 Subject: Fix -Wshadow warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/cg-sleepmode.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/cg-sleepmode.c') diff --git a/src/cg-sleepmode.c b/src/cg-sleepmode.c index bfa719a..6d0c12a 100644 --- a/src/cg-sleepmode.c +++ b/src/cg-sleepmode.c @@ -192,20 +192,20 @@ static int parse_double(double* restrict out, const char* restrict str) * @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 q = (rflag || gflag || bflag || argc); 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) || (argc > 3)) usage(); if (rflag != NULL) -- cgit v1.2.3-70-g09d2