summaryrefslogtreecommitdiffstats
path: root/builtin/mktree.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-06-13 22:19:34 +0200
committerJunio C Hamano <gitster@pobox.com>2019-06-13 22:19:34 +0200
commitc0e78f7e4687e7bd5ff0b83974b28c1cc81c5487 (patch)
tree7e76e391d8b932b10461fb6f9f64522ce5ba747c /builtin/mktree.c
parentMerge branch 'sb/format-patch-base-patch-id-fix' (diff)
parentverify-commit: simplify parameters to run_gpg_verify() (diff)
downloadgit-c0e78f7e4687e7bd5ff0b83974b28c1cc81c5487.tar.xz
git-c0e78f7e4687e7bd5ff0b83974b28c1cc81c5487.zip
Merge branch 'jk/unused-params-final-batch'
* jk/unused-params-final-batch: verify-commit: simplify parameters to run_gpg_verify() show-branch: drop unused parameter from show_independent() rev-list: drop unused void pointer from finish_commit() remove_all_fetch_refspecs(): drop unused "remote" parameter receive-pack: drop unused "commands" from prepare_shallow_update() pack-objects: drop unused rev_info parameters name-rev: drop unused parameters from is_better_name() mktree: drop unused length parameter wt-status: drop unused status parameter read-cache: drop unused parameter from threaded load clone: drop dest parameter from copy_alternates() submodule: drop unused prefix parameter from some functions builtin: consistently pass cmd_* prefix to parse_options cmd_{read,write}_tree: rename "unused" variable that is used
Diffstat (limited to 'builtin/mktree.c')
-rw-r--r--builtin/mktree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/mktree.c b/builtin/mktree.c
index 94e82b8504..891991b00d 100644
--- a/builtin/mktree.c
+++ b/builtin/mktree.c
@@ -67,7 +67,7 @@ static const char *mktree_usage[] = {
NULL
};
-static void mktree_line(char *buf, size_t len, int nul_term_line, int allow_missing)
+static void mktree_line(char *buf, int nul_term_line, int allow_missing)
{
char *ptr, *ntr;
const char *p;
@@ -172,7 +172,7 @@ int cmd_mktree(int ac, const char **av, const char *prefix)
break;
die("input format error: (blank line only valid in batch mode)");
}
- mktree_line(sb.buf, sb.len, nul_term_line, allow_missing);
+ mktree_line(sb.buf, nul_term_line, allow_missing);
}
if (is_batch_mode && got_eof && used < 1) {
/*