diff options
author | Jason A. Donenfeld | 2013-03-03 23:21:33 -0500 |
---|---|---|
committer | Jason A. Donenfeld | 2013-03-04 09:12:54 -0500 |
commit | bdae1d8a8d39206ac75ab86f8e9ef53b2f29432e (patch) | |
tree | 683306f79bd96a45566879acd21e5ff085120acd /parsing.c | |
parent | 53bc747d311d18642fa3ad0cc0de34f3899ed1f4 (diff) | |
download | cgit-bdae1d8a8d39206ac75ab86f8e9ef53b2f29432e.tar.gz cgit-bdae1d8a8d39206ac75ab86f8e9ef53b2f29432e.tar.bz2 cgit-bdae1d8a8d39206ac75ab86f8e9ef53b2f29432e.zip |
White space around control verbs.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'parsing.c')
-rw-r--r-- | parsing.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -112,7 +112,7 @@ const char *reencode(char **txt, const char *src_enc, const char *dst_enc) | |||
112 | return *txt; | 112 | return *txt; |
113 | 113 | ||
114 | /* no encoding needed if src_enc equals dst_enc */ | 114 | /* no encoding needed if src_enc equals dst_enc */ |
115 | if(!strcasecmp(src_enc, dst_enc)) | 115 | if (!strcasecmp(src_enc, dst_enc)) |
116 | return *txt; | 116 | return *txt; |
117 | 117 | ||
118 | tmp = reencode_string(*txt, dst_enc, src_enc); | 118 | tmp = reencode_string(*txt, dst_enc, src_enc); |
@@ -170,7 +170,7 @@ struct commitinfo *cgit_parse_commit(struct commit *commit) | |||
170 | } | 170 | } |
171 | 171 | ||
172 | /* if no special encoding is found, assume UTF-8 */ | 172 | /* if no special encoding is found, assume UTF-8 */ |
173 | if(!ret->msg_encoding) | 173 | if (!ret->msg_encoding) |
174 | ret->msg_encoding = xstrdup("UTF-8"); | 174 | ret->msg_encoding = xstrdup("UTF-8"); |
175 | 175 | ||
176 | // skip unknown header fields | 176 | // skip unknown header fields |