Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
gitweb: Add link to other blame implementation in blame views
[gitweb.git]
/
help.c
diff --git
a/help.c
b/help.c
index fd87bb5aeec82beec600be46248b19b13bb33804..6c46d8b4949c4ad70ca6abc7edb4f7926c889a5a 100644
(file)
--- 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(" ");