X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=help.c;h=294337e71c0c8f1c3e150dd0b566c04db96c013d;hb=6ea71fe7d36cf5b81c2100d97a822ecf0bc04746;hp=da0cca0a15300c2ebaab99565fd6e85b0cd374ec;hpb=ba7e81430a32614982172c7064c01db43f55b4bb;p=git.git diff --git a/help.c b/help.c index da0cca0a1..294337e71 100644 --- a/help.c +++ b/help.c @@ -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(" ");