mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Fix coding style violation in last commit
* http.c (test_parse_range_header): Declare loop variable explicitly. Not in gnu99 standard.
This commit is contained in:
parent
b06fca60ac
commit
187edb604a
@ -4907,6 +4907,7 @@ ensure_extension (struct http_stat *hs, const char *ext, int *dt)
|
|||||||
const char *
|
const char *
|
||||||
test_parse_range_header(void)
|
test_parse_range_header(void)
|
||||||
{
|
{
|
||||||
|
unsigned i;
|
||||||
static const struct {
|
static const struct {
|
||||||
const char * rangehdr;
|
const char * rangehdr;
|
||||||
const wgint firstbyte;
|
const wgint firstbyte;
|
||||||
@ -4930,7 +4931,7 @@ test_parse_range_header(void)
|
|||||||
wgint lastbyteptr[sizeof(wgint)];
|
wgint lastbyteptr[sizeof(wgint)];
|
||||||
wgint lengthptr[sizeof(wgint)];
|
wgint lengthptr[sizeof(wgint)];
|
||||||
bool result;
|
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);
|
result = parse_content_range (test_array[i].rangehdr, firstbyteptr, lastbyteptr, lengthptr);
|
||||||
#if 0
|
#if 0
|
||||||
|
Loading…
Reference in New Issue
Block a user