From 187edb604a517e6a4ebf84096fab762fac0a2e03 Mon Sep 17 00:00:00 2001 From: Darshit Shah Date: Mon, 31 Aug 2015 21:04:54 +0530 Subject: [PATCH] Fix coding style violation in last commit * http.c (test_parse_range_header): Declare loop variable explicitly. Not in gnu99 standard. --- src/http.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/http.c b/src/http.c index c1050e5b..8a36f41e 100644 --- a/src/http.c +++ b/src/http.c @@ -4907,6 +4907,7 @@ ensure_extension (struct http_stat *hs, const char *ext, int *dt) const char * test_parse_range_header(void) { + unsigned i; static const struct { const char * rangehdr; const wgint firstbyte; @@ -4930,7 +4931,7 @@ test_parse_range_header(void) wgint lastbyteptr[sizeof(wgint)]; wgint lengthptr[sizeof(wgint)]; bool result; - for (unsigned i = 0; i < countof (test_array); i++) + for (i = 0; i < countof (test_array); i++) { result = parse_content_range (test_array[i].rangehdr, firstbyteptr, lastbyteptr, lengthptr); #if 0