summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Gustafsson <daniel@yesql.se>2020-09-30 21:10:14 +0200
committerDaniel Gustafsson <daniel@yesql.se>2020-09-30 21:10:14 +0200
commit2aac895fb6a7b19dada73f55041b710670befa49 (patch)
tree751f890d896b4db7f40dc6c56e7c9fc67736ea2e
parent021f2c25fd7fbe2887ed156354f8919c0d06a412 (diff)
downloadcurl-2aac895fb6a7b19dada73f55041b710670befa49.tar.gz
src: Consistently spell whitespace without whitespace
Whitespace is spelled without a space between white and space, so make sure to consistently spell it that way across the codebase. Closes #6023 Reviewed-by: Daniel Stenberg <daniel@haxx.se> Reviewed-by: Emil Engler <me@emilengler.com>
-rw-r--r--acinclude.m44
-rw-r--r--docs/CHECKSRC.md2
-rw-r--r--docs/MANUAL.md2
-rwxr-xr-xlib/checksrc.pl4
-rw-r--r--lib/curl_path.c4
-rw-r--r--lib/ftplistparser.c4
-rw-r--r--lib/http.c2
-rwxr-xr-xscripts/contrithanks.sh2
-rw-r--r--src/tool_parsecfg.c2
9 files changed, 13 insertions, 13 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 089449bac..e7a36e4bd 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -661,7 +661,7 @@ dnl -------------------------------------------------
dnl Check for libraries needed for WINLDAP support,
dnl and prepended to LIBS any needed libraries.
dnl This macro can take an optional parameter with a
-dnl white space separated list of libraries to check
+dnl whitespace separated list of libraries to check
dnl before the WINLDAP default ones.
AC_DEFUN([CURL_CHECK_LIBS_WINLDAP], [
@@ -755,7 +755,7 @@ dnl -------------------------------------------------
dnl Check for libraries needed for LDAP support,
dnl and prepended to LIBS any needed libraries.
dnl This macro can take an optional parameter with a
-dnl white space separated list of libraries to check
+dnl whitespace separated list of libraries to check
dnl before the default ones.
AC_DEFUN([CURL_CHECK_LIBS_LDAP], [
diff --git a/docs/CHECKSRC.md b/docs/CHECKSRC.md
index ac43ea589..d36763bc5 100644
--- a/docs/CHECKSRC.md
+++ b/docs/CHECKSRC.md
@@ -100,7 +100,7 @@ warnings are:
- `TABS`: TAB characters are not allowed!
-- `TRAILINGSPACE`: Trailing white space on the line
+- `TRAILINGSPACE`: Trailing whitespace on the line
- `TYPEDEFSTRUCT`: we frown upon (most) typedefed structs
diff --git a/docs/MANUAL.md b/docs/MANUAL.md
index e4c7d7971..572143600 100644
--- a/docs/MANUAL.md
+++ b/docs/MANUAL.md
@@ -556,7 +556,7 @@ Example, set default time out and proxy in a config file:
# ... and we use a proxy for all accesses:
proxy = proxy.our.domain.com:8080
-White spaces ARE significant at the end of lines, but all white spaces leading
+Whitespaces ARE significant at the end of lines, but all whitespace leading
up to the first characters of each line are ignored.
Prevent curl from reading the default file by using -q as the first command
diff --git a/lib/checksrc.pl b/lib/checksrc.pl
index e7eb454f1..c47aaf0f5 100755
--- a/lib/checksrc.pl
+++ b/lib/checksrc.pl
@@ -52,7 +52,7 @@ my %warnings_extended = (
my %warnings = (
'LONGLINE' => "Line longer than $max_column",
'TABS' => 'TAB characters not allowed',
- 'TRAILINGSPACE' => 'Trailing white space on the line',
+ 'TRAILINGSPACE' => 'Trailing whitespace on the line',
'CPPCOMMENTS' => '// comment detected',
'SPACEBEFOREPAREN' => 'space before an open parenthesis',
'SPACEAFTERPAREN' => 'space after open parenthesis',
@@ -399,7 +399,7 @@ sub scanfile {
checkwarn("TABS",
$line, length($1), $file, $l, "Contains TAB character", 1);
}
- # detect trailing white space
+ # detect trailing whitespace
if($l =~ /^(.*)[ \t]+\z/) {
checkwarn("TRAILINGSPACE",
$line, length($1), $file, $l, "Trailing whitespace");
diff --git a/lib/curl_path.c b/lib/curl_path.c
index fbd98cb39..7b3fb27ab 100644
--- a/lib/curl_path.c
+++ b/lib/curl_path.c
@@ -168,7 +168,7 @@ CURLcode Curl_get_pathname(const char **cpp, char **path, char *homedir)
*cpp = cp + i + strspn(cp + i, WHITESPACE);
}
else {
- /* Read to end of filename - either to white space or terminator */
+ /* Read to end of filename - either to whitespace or terminator */
end = strpbrk(cp, WHITESPACE);
if(end == NULL)
end = strchr(cp, '\0');
@@ -184,7 +184,7 @@ CURLcode Curl_get_pathname(const char **cpp, char **path, char *homedir)
(*path)[pathLength] = '\0';
cp += 3;
}
- /* Copy path name up until first "white space" */
+ /* Copy path name up until first "whitespace" */
memcpy(&(*path)[pathLength], cp, (int)(end - cp));
pathLength += (int)(end - cp);
(*path)[pathLength] = '\0';
diff --git a/lib/ftplistparser.c b/lib/ftplistparser.c
index 6f208c4b4..c7b84a9ff 100644
--- a/lib/ftplistparser.c
+++ b/lib/ftplistparser.c
@@ -418,8 +418,8 @@ size_t Curl_ftp_parselist(char *buffer, size_t size, size_t nmemb,
finfo->b_data[parser->item_length - 1] = 0;
if(strncmp("total ", finfo->b_data, 6) == 0) {
char *endptr = finfo->b_data + 6;
- /* here we can deal with directory size, pass the leading white
- spaces and then the digits */
+ /* here we can deal with directory size, pass the leading
+ whitespace and then the digits */
while(ISSPACE(*endptr))
endptr++;
while(ISDIGIT(*endptr))
diff --git a/lib/http.c b/lib/http.c
index 748750ebb..e0be17d9b 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -1355,7 +1355,7 @@ Curl_compareheader(const char *headerline, /* line to check */
/* pass the header */
start = &headerline[hlen];
- /* pass all white spaces */
+ /* pass all whitespace */
while(*start && ISSPACE(*start))
start++;
diff --git a/scripts/contrithanks.sh b/scripts/contrithanks.sh
index 0d16a3b90..81e614f9a 100755
--- a/scripts/contrithanks.sh
+++ b/scripts/contrithanks.sh
@@ -64,7 +64,7 @@ sed -e 's/^ //' -e 's/ $//g' -e 's/@users.noreply.github.com$/ on github/'
# grep out the list of names from RELEASE-NOTES
# split on ", "
-# remove leading white spaces
+# remove leading whitespace
grep -a "^ [^ (]" RELEASE-NOTES| \
sed 's/, */\n/g'| \
sed 's/^ *//'
diff --git a/src/tool_parsecfg.c b/src/tool_parsecfg.c
index f09180ed4..abd493ae5 100644
--- a/src/tool_parsecfg.c
+++ b/src/tool_parsecfg.c
@@ -227,7 +227,7 @@ int parseconfig(const char *filename, struct GlobalConfig *global)
break;
default:
warnf(operation->global, "%s:%d: warning: '%s' uses unquoted "
- "white space in the line that may cause side-effects!\n",
+ "whitespace in the line that may cause side-effects!\n",
filename, lineno, option);
}
}