Fix 'read' symbol shadowed by 'read' variable
Rename variable 'read' by 'nrread'.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
diff --git a/gpio.c b/gpio.c
index 36dedd1..0894128 100644
--- a/gpio.c
+++ b/gpio.c
@@ -331,7 +331,7 @@
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 @@
}
/* 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);
}