Files
gentoo-zh/dev-android/fastboot/files/fastboot-gcc-4.8.patch
T
Lan Yixun (dlan) 4fc33d4ecc dev-android/fastboot: make it work again
1) fix git repo typo
2) gcc compile issue

Signed-off-by: Lan Yixun (dlan) <dennis.yxun@gmail.com>
2013-12-09 11:33:54 +08:00

23 lines
697 B
Diff

diff --git a/fastboot/fastboot.c b/fastboot/fastboot.c
index 73a6e56..d9c0cfc 100644
--- a/fastboot/fastboot.c
+++ b/fastboot/fastboot.c
@@ -445,7 +445,7 @@ static int setup_requirement_line(char *name)
char *val[MAX_OPTIONS];
const char **out;
char *prod = NULL;
- unsigned n, count;
+ unsigned n, i, count;
char *x;
int invert = 0;
@@ -492,7 +492,7 @@ static int setup_requirement_line(char *name)
for(n = 0; n < count; n++) {
out[n] = strdup(strip(val[n]));
if (out[n] == 0) {
- for(size_t i = 0; i < n; ++i) {
+ for(i = 0; i < n; ++i) {
free((char*) out[i]);
}
free(out);