diff options
author | pfg <pfg@FreeBSD.org> | 2016-04-30 14:41:18 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2016-04-30 14:41:18 +0000 |
commit | e72339bbf0cf32cc88d5e54df91debe618e92ada (patch) | |
tree | 06929dc26671f0710b964d5bb0a7634f12528a36 /sys/ddb | |
parent | 20431f1fdeea72f57a3a56126ba1e194a9b8d076 (diff) | |
download | FreeBSD-src-e72339bbf0cf32cc88d5e54df91debe618e92ada.zip FreeBSD-src-e72339bbf0cf32cc88d5e54df91debe618e92ada.tar.gz |
sys: Make use of our rounddown() macro when sys/param.h is available.
No functional change.
Diffstat (limited to 'sys/ddb')
-rw-r--r-- | sys/ddb/db_output.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/ddb/db_output.c b/sys/ddb/db_output.c index a2afb6a..109c7a5 100644 --- a/sys/ddb/db_output.c +++ b/sys/ddb/db_output.c @@ -71,8 +71,7 @@ struct dbputchar_arg { static int db_output_position = 0; /* output column */ static int db_last_non_space = 0; /* last non-space character */ db_expr_t db_tab_stop_width = 8; /* how wide are tab stops? */ -#define NEXT_TAB(i) \ - ((((i) + db_tab_stop_width) / db_tab_stop_width) * db_tab_stop_width) +#define NEXT_TAB(i) rounddown((i) + db_tab_stop_width, db_tab_stop_width) db_expr_t db_max_width = 79; /* output line width */ db_expr_t db_lines_per_page = 20; /* lines per page */ volatile int db_pager_quit; /* user requested quit */ |