X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fnetrc.c;h=84f722eded223991afe9a8116ed214a2e099f675;hp=c70a8a348ae35d87b6015a462273f2c70e763bb5;hb=462e643a7e31676eceda23e634241f7b4d2cd7bb;hpb=3073a77ed89e7d9527d110a028d134bfd1f9cb40 diff --git a/src/netrc.c b/src/netrc.c index c70a8a34..84f722ed 100644 --- a/src/netrc.c +++ b/src/netrc.c @@ -30,16 +30,13 @@ as that of the covered work. */ /* This file used to be kept in synch with the code in Fetchmail, but the latter has diverged since. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include "wget.h" #include #include #include #include -#include "wget.h" #include "utils.h" #include "netrc.h" #include "init.h" @@ -284,7 +281,7 @@ parse_netrc (const char *path) quote = 0; /* Skip leading whitespace. */ - while (*p && ISSPACE (*p)) + while (*p && c_isspace (*p)) p ++; /* If the line is empty, then end any macro definition. */ @@ -296,7 +293,7 @@ parse_netrc (const char *path) while (*p && last_token != tok_macdef) { /* Skip any whitespace. */ - while (*p && ISSPACE (*p)) + while (*p && c_isspace (*p)) p ++; /* Discard end-of-line comments; also, stop processing if @@ -314,7 +311,7 @@ parse_netrc (const char *path) tok = p; /* Find the end of the token, handling quotes and escapes. */ - while (*p && (quote ? *p != '"' : !ISSPACE (*p))){ + while (*p && (quote ? *p != '"' : !c_isspace (*p))){ if (*p == '\\') shift_left (p); p ++;