summaryrefslogtreecommitdiff
path: root/mailinfo.c
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2017-06-25 10:20:41 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-06-27 17:35:49 (GMT)
commit64127575149e35b409bc2f78962f86507346d604 (patch)
tree3287f694ee01dfabdcab849c10fd90947a0ca531 /mailinfo.c
parente0aaa1b6532cfce93d87af9bc813fb2e7a7ce9d7 (diff)
downloadgit-64127575149e35b409bc2f78962f86507346d604.zip
git-64127575149e35b409bc2f78962f86507346d604.tar.gz
git-64127575149e35b409bc2f78962f86507346d604.tar.bz2
Spelling fixes
Signed-off-by: Ville Skyttä <ville.skytta@iki.fi> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'mailinfo.c')
-rw-r--r--mailinfo.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/mailinfo.c b/mailinfo.c
index 1652ec1..bd574cb 100644
--- a/mailinfo.c
+++ b/mailinfo.c
@@ -58,17 +58,17 @@ static void parse_bogus_from(struct mailinfo *mi, const struct strbuf *line)
static const char *unquote_comment(struct strbuf *outbuf, const char *in)
{
int c;
- int take_next_litterally = 0;
+ int take_next_literally = 0;
strbuf_addch(outbuf, '(');
while ((c = *in++) != 0) {
- if (take_next_litterally == 1) {
- take_next_litterally = 0;
+ if (take_next_literally == 1) {
+ take_next_literally = 0;
} else {
switch (c) {
case '\\':
- take_next_litterally = 1;
+ take_next_literally = 1;
continue;
case '(':
in = unquote_comment(outbuf, in);
@@ -88,15 +88,15 @@ static const char *unquote_comment(struct strbuf *outbuf, const char *in)
static const char *unquote_quoted_string(struct strbuf *outbuf, const char *in)
{
int c;
- int take_next_litterally = 0;
+ int take_next_literally = 0;
while ((c = *in++) != 0) {
- if (take_next_litterally == 1) {
- take_next_litterally = 0;
+ if (take_next_literally == 1) {
+ take_next_literally = 0;
} else {
switch (c) {
case '\\':
- take_next_litterally = 1;
+ take_next_literally = 1;
continue;
case '"':
return in;