1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

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 */
}
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 '['
- 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)
{
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 */
free(glob->literal[i/2]);
}
@ -354,7 +356,7 @@ char *glob_next_url(URLGlob *glob)
char *buf = glob->glob_buffer;
URLPattern *pat;
char *lit;
int i;
size_t i;
size_t j;
int carry;
@ -365,7 +367,7 @@ char *glob_next_url(URLGlob *glob)
/* implement a counter over the index ranges of all patterns,
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;
pat = &glob->pattern[i];
switch (pat->type) {