]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFstable/10 r301836:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 12 Jun 2016 08:32:39 +0000 (08:32 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 12 Jun 2016 08:32:39 +0000 (08:32 +0000)
commit357ad31d480292ee445fd680c8b500bc34c73a62
tree1832944fc307856a5636bcf934543663d41bc310
parenta8ffdf57c4c4d16aad8cbc1197ba9759075b2e02
MFstable/10 r301836:

MFC r300395:

Silence top(1) compiler warnings

The contrib/top code is no longer maintained upstream (last pulled 16 years
ago). The K&R-style followed by the code spews -Wimplicit-int and -Wreturn-type
warnings, amongst others. This silences 131 warnings with as little modification
as possible by adding necessary return types, definitions, headers, and header
guards, and missing header includes.

The 5 warnings that remain are due to undeclared ncurses references. I didn't
include curses.h and term.h because there are several local functions and macros
that conflict with those definitions.

git-svn-id: svn://svn.freebsd.org/base/stable/9@301837 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
13 files changed:
contrib/top/commands.c
contrib/top/commands.h [new file with mode: 0644]
contrib/top/display.c
contrib/top/display.h
contrib/top/machine.h
contrib/top/screen.c
contrib/top/screen.h
contrib/top/top.c
contrib/top/top.h
contrib/top/username.c
contrib/top/username.h [new file with mode: 0644]
contrib/top/utils.h
contrib/top/version.c