freebsd-dev/usr.bin/top
Eitan Adler eae589f1ce top(1): another pass of cleanup
- avoid the need to call a function to get size of known array. I'll
likely re-arrange some of the indirect in a later to avoid the magic
constants.
- use correct type
- add const
- replace caddr_t with void*. This corrects an alignment warning.
- remove duplicated include from immediately prior commit

Under base clang we're now down to:
- 3 warning in top.c, 1 warning in mahcine.c,  4 warning in display.c,
- 1 warning in utils.c

Tested with base clang, gcc7, gcc9, base gcc (mips)
2018-06-03 23:40:54 +00:00
..
commands.c top(1): misc minor improvements 2018-06-03 02:58:53 +00:00
commands.h top(1): Migrate top to usr.bin 2018-05-19 22:40:23 +00:00
display.c top(1): another pass of cleanup 2018-06-03 23:40:54 +00:00
display.h top(1): top warnings and cleanup 2018-06-03 22:42:54 +00:00
layout.h top(1): Migrate top to usr.bin 2018-05-19 22:40:23 +00:00
loadavg.h top(1): fix MIPS 2018-05-21 04:47:13 +00:00
machine.c top(1): another pass of cleanup 2018-06-03 23:40:54 +00:00
machine.h top(1): another pass of cleanup 2018-06-03 23:40:54 +00:00
Makefile top(1): Only use NO_WERROR for base gcc 2018-06-03 06:02:31 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
screen.c top(1): Fix two speeling errors I introduced 2018-06-02 22:12:57 +00:00
screen.h top(1): cleanup memory allocation and warnings 2018-06-02 21:40:45 +00:00
sigconv.awk top(1): fix "variable without declaration" warning 2018-05-21 01:05:32 +00:00
top.1 top: add -p option and p command to only show a single process 2018-06-02 15:52:18 +00:00
top.c top(1): another pass of cleanup 2018-06-03 23:40:54 +00:00
top.h top(1): another pass of cleanup 2018-06-03 23:40:54 +00:00
username.c top(1): partial revert of r334517 2018-06-03 05:20:11 +00:00
username.h top(1): partial revert of r334517 2018-06-03 05:20:11 +00:00
utils.c top(1): another pass of cleanup 2018-06-03 23:40:54 +00:00
utils.h top(1): another pass of cleanup 2018-06-03 23:40:54 +00:00