diff options
author | Daniel Lezcano <daniel.lezcano@linaro.org> | 2016-02-22 10:49:16 +0000 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2016-02-22 10:49:16 +0000 |
commit | 627d28d60f885fed586695f2837b097026afd883 (patch) | |
tree | 3a676458b7f57417776b1da217bdfeda910cc166 /gpio.c | |
parent | 3109e16ace9cc24ca4bc779d7eacaa6ee6f1200c (diff) | |
download | powerdebug-627d28d60f885fed586695f2837b097026afd883.tar.gz |
Fix 'read' symbol shadowed by 'read' variable
Rename variable 'read' by 'nrread'.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'gpio.c')
-rw-r--r-- | gpio.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -331,7 +331,7 @@ void export_free_gpios(void) FILE *fgpio, *fgpio_export; int i, gpio_max = 0; char *line = NULL; - ssize_t read; + ssize_t nrread; size_t len = 0; fgpio = fopen("/sys/kernel/debug/gpio", "r"); @@ -347,7 +347,7 @@ void export_free_gpios(void) } /* export the gpios */ - while ((read = getline(&line, &len, fgpio)) != -1) { + while ((nrread = getline(&line, &len, fgpio)) != -1) { if (strstr(line, "GPIOs")) sscanf(line, "%*[^-]-%d", &gpio_max); } |