diff options
author | Pierre Habouzit <madcoder@debian.org> | 2009-07-22 23:34:35 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-07-22 21:57:41 -0700 |
commit | 98cb6f30f708ef416572bf65bd26ac9f998ae0dc (patch) | |
tree | bed685d6c61a21dd9884a97606df16f1697408d0 /help.c | |
parent | f630cfda8800aee03c7eb2fcd0f840730fbe43b9 (diff) | |
download | git-98cb6f30f708ef416572bf65bd26ac9f998ae0dc.tar.gz |
janitor: add DIV_ROUND_UP and use it.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'help.c')
-rw-r--r-- | help.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -100,7 +100,7 @@ static void pretty_print_string_list(struct cmdnames *cmds, int longest) if (space < max_cols) cols = max_cols / space; - rows = (cmds->cnt + cols - 1) / cols; + rows = DIV_ROUND_UP(cmds->cnt, cols); for (i = 0; i < rows; i++) { printf(" "); |