diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2009-03-07 21:02:10 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-03-07 20:52:17 -0800 |
commit | eb3a9dd3279fe4b05f286665986ebf6d43a6ccc0 (patch) | |
tree | 233eedd57ace00196ba105ba5275829d42e969e0 /fast-import.c | |
parent | 36adb4abbdf809371b88581c8bf7fe9ea9a5b00a (diff) | |
download | git-eb3a9dd3279fe4b05f286665986ebf6d43a6ccc0.tar.gz git-eb3a9dd3279fe4b05f286665986ebf6d43a6ccc0.tar.xz |
Remove unused function scope local variables
These variables were unused and can be removed safely:
builtin-clone.c::cmd_clone(): use_local_hardlinks, use_separate_remote
builtin-fetch-pack.c::find_common(): len
builtin-remote.c::mv(): symref
diff.c::show_stats():show_stats(): total
diffcore-break.c::should_break(): base_size
fast-import.c::validate_raw_date(): date, sign
fsck.c::fsck_tree(): o_sha1, sha1
xdiff-interface.c::parse_num(): read_some
Signed-off-by: Benjamin Kramer <benny.kra@googlemail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'fast-import.c')
-rw-r--r-- | fast-import.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/fast-import.c b/fast-import.c index 3748ddf48..beeac0d00 100644 --- a/fast-import.c +++ b/fast-import.c @@ -1745,21 +1745,19 @@ static void parse_data(struct strbuf *sb) static int validate_raw_date(const char *src, char *result, int maxlen) { const char *orig_src = src; - char *endp, sign; - unsigned long date; + char *endp; errno = 0; - date = strtoul(src, &endp, 10); + strtoul(src, &endp, 10); if (errno || endp == src || *endp != ' ') return -1; src = endp + 1; if (*src != '-' && *src != '+') return -1; - sign = *src; - date = strtoul(src + 1, &endp, 10); + strtoul(src + 1, &endp, 10); if (errno || endp == src || *endp || (endp - orig_src) >= maxlen) return -1; |