summaryrefslogtreecommitdiff
path: root/lib/checksrc.pl
diff options
context:
space:
mode:
authorViktor Szakats <vszakats@users.noreply.github.com>2018-02-23 23:29:01 +0000
committerViktor Szakats <vszakats@users.noreply.github.com>2018-02-23 23:29:01 +0000
commit7e35eb77292fe6464889ddc8329c6a64136f969d (patch)
tree76b1bdd02473d44be6773d0c61bbe8e98aeb8ffd /lib/checksrc.pl
parent06df42410e8829b70812b56664ab9fe3c77b683a (diff)
downloadcurl-7e35eb77292fe6464889ddc8329c6a64136f969d.tar.gz
spelling fixes
Detected using the `codespell` tool. Also contains one URL protocol upgrade. Closes https://github.com/curl/curl/pull/2334
Diffstat (limited to 'lib/checksrc.pl')
-rwxr-xr-xlib/checksrc.pl10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/checksrc.pl b/lib/checksrc.pl
index 92af9000c..c222bb87c 100755
--- a/lib/checksrc.pl
+++ b/lib/checksrc.pl
@@ -26,7 +26,7 @@ my $indent = 2;
my $warnings;
my $errors;
-my $supressed; # whitelisted problems
+my $suppressed; # whitelisted problems
my $file;
my $dir=".";
my $wlist;
@@ -60,7 +60,7 @@ my %warnings = (
'ASTERISKNOSPACE' => 'pointer declared without space before asterisk',
'ASSIGNWITHINCONDITION' => 'assignment within conditional expression',
'EQUALSNOSPACE' => 'equals sign without following space',
- 'NOSPACEEQUALS' => 'equals sign without preceeding space',
+ 'NOSPACEEQUALS' => 'equals sign without preceding space',
'SEMINOSPACE' => 'semicolon without following space',
'MULTISPACE' => 'multiple spaces used when not suitable',
);
@@ -101,7 +101,7 @@ sub checkwarn {
}
if($nowarn) {
- $supressed++;
+ $suppressed++;
if($w) {
$swarnings++;
}
@@ -422,7 +422,7 @@ sub scanfile {
# There is a quote here, figure out whether the comma is
# within a string or '' or not.
if($pref =~ /\"/) {
- # withing a string
+ # within a string
}
elsif($pref =~ /\'$/) {
# a single letter
@@ -596,7 +596,7 @@ sub scanfile {
if($errors || $warnings || $verbose) {
printf "checksrc: %d errors and %d warnings\n", $errors, $warnings;
- if($supressed) {
+ if($suppressed) {
printf "checksrc: %d errors and %d warnings suppressed\n",
$serrors,
$swarnings;