diff options
author | Kirill A. Shutemov <kirill@shutemov.name> | 2011-06-30 19:52:34 +0300 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-07-01 18:02:56 +0200 |
commit | 932d1baf294aaacfd5a99e7758a3c08d8ffc22ab (patch) | |
tree | e6714d92345ed9a916d8cd771ab1588333d41998 /src/signature.c | |
parent | 1f4f4d17046e43ca24da9621323d921ae0d0f5dd (diff) | |
download | libgit2-932d1baf294aaacfd5a99e7758a3c08d8ffc22ab.tar.gz |
cleanup: remove trailing spaces
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Diffstat (limited to 'src/signature.c')
-rw-r--r-- | src/signature.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/signature.c b/src/signature.c index 78cb78614..7d2333624 100644 --- a/src/signature.c +++ b/src/signature.c @@ -107,7 +107,7 @@ static int parse_timezone_offset(const char *buffer, long *offset_out) const char *offset_start; const char *offset_end; - //we are sure that *buffer == ' ' + //we are sure that *buffer == ' ' offset_start = buffer + 1; if (*offset_start == '\n') { @@ -133,7 +133,7 @@ static int parse_timezone_offset(const char *buffer, long *offset_out) hours = dec_offset / 100; mins = dec_offset % 100; - if (hours > 14) // see http://www.worldtimezone.com/faq.html + if (hours > 14) // see http://www.worldtimezone.com/faq.html return git__throw(GIT_EOBJCORRUPTED, "Failed to parse TZ offset. Hour value too large"); if (mins > 59) @@ -143,7 +143,7 @@ static int parse_timezone_offset(const char *buffer, long *offset_out) if (offset_start[0] == '-') offset *= -1; - + *offset_out = offset; return GIT_SUCCESS; @@ -218,7 +218,7 @@ int git_signature__parse(git_signature *sig, const char **buffer_out, if (parse_timezone_offset(buffer, &offset) < GIT_SUCCESS) return git__throw(GIT_EOBJCORRUPTED, "Failed to parse signature. Could not parse timezone offset"); - + sig->when.offset = offset; *buffer_out = (line_end + 1); @@ -234,7 +234,7 @@ int git_signature__write(char **signature, const char *header, const git_signatu offset = sig->when.offset; sign = (sig->when.offset < 0) ? '-' : '+'; - + if (offset < 0) offset = -offset; |