]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
top(1): modernize a bit; reduce warnings
authoreadler <eadler@FreeBSD.org>
Mon, 21 May 2018 09:18:01 +0000 (09:18 +0000)
committereadler <eadler@FreeBSD.org>
Mon, 21 May 2018 09:18:01 +0000 (09:18 +0000)
commitbe108636cdcb3f2f80e7c12122588668e738ee2a
tree921d6842d5eb53972f8e996e1ed52a163fa82e29
parent649df389bf37b6faf7357564fe72747ca5210319
top(1): modernize a bit; reduce warnings

- Replace caddr_t with "void *". This reduces
the number of warnings at WARNS=6
- use "static" where possible
- sprinkle const where possible

This leaves at WARNS=6:
35 warnings in top.c
72 warnings in machine.c
5 warnings in commands.c

all of which are either "incompatible-pointer-types-discards-qualifiers"
or "cast-qual"
usr.bin/top/Makefile
usr.bin/top/commands.c
usr.bin/top/display.c
usr.bin/top/machine.c
usr.bin/top/machine.h
usr.bin/top/screen.c
usr.bin/top/top.c
usr.bin/top/top.h
usr.bin/top/username.c