Provide proper contemporary function prototypes for many of the functions
authorrwatson <rwatson@FreeBSD.org>
Sun, 26 Mar 2017 17:22:44 +0000 (17:22 +0000)
committerrwatson <rwatson@FreeBSD.org>
Sun, 26 Mar 2017 17:22:44 +0000 (17:22 +0000)
commit7037a749bf631048a3203cf9cf6d57796054e39f
treea214fc2179d4c806d1ffccda1339e8f277551cd5
parent6574f160679f17b522b8b868d3c1fe82d89c8355
Provide proper contemporary function prototypes for many of the functions
implemented in top(1), rather than relying on K&R prototypes, which can
cause problems on targets where there are multiple incompatible calling
conventions and the compiler requires argument information to select the
correct one.

(There's a bit more to do here, since it looks like top(1) also sometimes
provides prototypes for various curses functions rather than relying on
the header file...)

Sponsored by: DARPA, AFRL
MFC after: 1 week
contrib/top/machine.h
contrib/top/top.c
usr.bin/top/machine.c