]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r300395:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 12 Jun 2016 05:57:42 +0000 (05:57 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 12 Jun 2016 05:57:42 +0000 (05:57 +0000)
commit2cde7450b326e7a999e27358aaa6290286863229
tree22fd0ff61a3c52ee22883f40ccfada0759f8c777
parent12a1c7a90944d8ad5b8a21042535b1f8d6030cc5
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/10@301836 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