diff options
author | ngie <ngie@FreeBSD.org> | 2016-06-12 05:57:42 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2016-06-12 05:57:42 +0000 |
commit | c6121076a04ad6bd67f3f5daa207c6876fec6bf6 (patch) | |
tree | 22fd0ff61a3c52ee22883f40ccfada0759f8c777 /contrib/top/utils.h | |
parent | 9be8cdbf64b1298f814e3e49984991d4db3a3e08 (diff) | |
download | FreeBSD-src-c6121076a04ad6bd67f3f5daa207c6876fec6bf6.zip FreeBSD-src-c6121076a04ad6bd67f3f5daa207c6876fec6bf6.tar.gz |
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.
Diffstat (limited to 'contrib/top/utils.h')
-rw-r--r-- | contrib/top/utils.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/top/utils.h b/contrib/top/utils.h index 12a6c76..6710e85 100644 --- a/contrib/top/utils.h +++ b/contrib/top/utils.h @@ -22,3 +22,5 @@ char *errmsg(); char *format_time(); char *format_k(); char *format_k2(unsigned long long); +int string_index(char *string, char **array); + |