summaryrefslogtreecommitdiff
path: root/src/config_file.c
diff options
context:
space:
mode:
authorSebastian Schuberth <sschuberth@gmail.com>2011-05-19 09:26:01 +0200
committerSebastian Schuberth <sschuberth@gmail.com>2011-05-19 09:34:58 +0200
commit8133afefe39091c41f19e1977cf731b793741137 (patch)
treed638bdd0f9f7aa3c62c1b25540693371a08ab8c7 /src/config_file.c
parent7b134cfebe3d37f3679119b447edcad12e6beec1 (diff)
downloadlibgit2-8133afefe39091c41f19e1977cf731b793741137.tar.gz
Fix a few minor typos in comments and error messages
Regarding "initialize" vs. "initialise", www.dict.cc says the first is American English whereas the latter in British English. For consistency, we should stick to American English.
Diffstat (limited to 'src/config_file.c')
-rw-r--r--src/config_file.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/config_file.c b/src/config_file.c
index fcd15c6d4..75319a6a3 100644
--- a/src/config_file.c
+++ b/src/config_file.c
@@ -641,7 +641,7 @@ static int parse_section_header_ext(const char *line, const char *base_name, cha
ret = snprintf(*section_name, total_len, "%s %s", base_name, subsection);
if (ret >= total_len) {
/* If this fails, we've checked the length wrong */
- error = git__throw(GIT_ERROR, "Failed to parse ext header. Wrong total lenght calculation");
+ error = git__throw(GIT_ERROR, "Failed to parse ext header. Wrong total length calculation");
goto out;
} else if (ret < 0) {
error = git__throw(GIT_EOSERR, "Failed to parse ext header. OS error: %s", strerror(errno));
@@ -804,7 +804,7 @@ static int config_parse(file_backend *cfg_file)
char *var_value;
cvar_t *var;
- /* Initialise the reading position */
+ /* Initialize the reading position */
cfg_file->reader.read_ptr = cfg_file->reader.buffer.data;
cfg_file->reader.eof = 0;
@@ -1001,7 +1001,7 @@ static int parse_variable(file_backend *cfg, char **var_name, char **var_value)
*var_value = tmp;
} else {
- /* If thre is no value, boolean true is assumed */
+ /* If there is no value, boolean true is assumed */
*var_value = NULL;
}