diff options
author | Pierre Habouzit <madcoder@debian.org> | 2009-07-22 23:34:35 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-07-23 06:57:41 +0200 |
commit | 98cb6f30f708ef416572bf65bd26ac9f998ae0dc (patch) | |
tree | bed685d6c61a21dd9884a97606df16f1697408d0 /help.c | |
parent | refactor: use bitsizeof() instead of 8 * sizeof() (diff) | |
download | git-98cb6f30f708ef416572bf65bd26ac9f998ae0dc.tar.xz git-98cb6f30f708ef416572bf65bd26ac9f998ae0dc.zip |
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(" "); |