summaryrefslogtreecommitdiff
path: root/help.c
diff options
context:
space:
mode:
authorJohannes Sixt <j6t@kdbg.org>2015-06-05 19:45:05 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-06-05 22:00:32 (GMT)
commit2024d3176536fd437b4c0a744161e96bc150a24e (patch)
treef1eae651d898a045d48cf6ecac60f22f4dff1cd4 /help.c
parent1e9676ec0a771de06abca3009eb4bdc5a4ae3312 (diff)
downloadgit-2024d3176536fd437b4c0a744161e96bc150a24e.zip
git-2024d3176536fd437b4c0a744161e96bc150a24e.tar.gz
git-2024d3176536fd437b4c0a744161e96bc150a24e.tar.bz2
help.c: wrap wait-only poll() invocation in sleep_millisec()
We want to use the new function elsewhere in a moment. Signed-off-by: Johannes Sixt <j6t@kdbg.org> Reviewed-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'help.c')
-rw-r--r--help.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/help.c b/help.c
index 2072a87..de1279b 100644
--- a/help.c
+++ b/help.c
@@ -372,7 +372,7 @@ const char *help_unknown_cmd(const char *cmd)
if (autocorrect > 0) {
fprintf_ln(stderr, _("in %0.1f seconds automatically..."),
(float)autocorrect/10.0);
- poll(NULL, 0, autocorrect * 100);
+ sleep_millisec(autocorrect * 100);
}
return assumed;
}