variable type cleanup to hush compilers,

killed trailing whitespace
This commit is contained in:
Daniel Stenberg 2004-07-02 12:28:57 +00:00
parent aedadfc779
commit 7876c078bc

View File

@ -138,7 +138,8 @@ static GlobCode glob_set(URLGlob *glob, char *pattern,
/* we never reach this point */ /* we never reach this point */
} }
static GlobCode glob_range(URLGlob *glob, char *pattern, int pos, int *amount) static GlobCode glob_range(URLGlob *glob, char *pattern,
size_t pos, int *amount)
{ {
/* processes a range expression with the point behind the opening '[' /* processes a range expression with the point behind the opening '['
- char range: e.g. "a-z]", "B-Q]" - char range: e.g. "a-z]", "B-Q]"
@ -328,9 +329,10 @@ int glob_url(URLGlob** glob, char* url, int *urlnum, FILE *error)
void glob_cleanup(URLGlob* glob) void glob_cleanup(URLGlob* glob)
{ {
int i, elem; size_t i;
int elem;
for (i = glob->size - 1; i >= 0; --i) { for (i = glob->size - 1; i < glob->size; --i) {
if (!(i & 1)) { /* even indexes contain literals */ if (!(i & 1)) { /* even indexes contain literals */
free(glob->literal[i/2]); free(glob->literal[i/2]);
} }
@ -354,7 +356,7 @@ char *glob_next_url(URLGlob *glob)
char *buf = glob->glob_buffer; char *buf = glob->glob_buffer;
URLPattern *pat; URLPattern *pat;
char *lit; char *lit;
int i; size_t i;
size_t j; size_t j;
int carry; int carry;
@ -365,7 +367,7 @@ char *glob_next_url(URLGlob *glob)
/* implement a counter over the index ranges of all patterns, /* implement a counter over the index ranges of all patterns,
starting with the rightmost pattern */ starting with the rightmost pattern */
for (i = glob->size / 2 - 1; carry && i >= 0; --i) { for (i = glob->size / 2 - 1; carry && i < glob->size; --i) {
carry = 0; carry = 0;
pat = &glob->pattern[i]; pat = &glob->pattern[i];
switch (pat->type) { switch (pat->type) {