]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r295900, r295768 to usr.sbin/iostat
authorasomers <asomers@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 17 Mar 2016 20:29:10 +0000 (20:29 +0000)
committerasomers <asomers@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 17 Mar 2016 20:29:10 +0000 (20:29 +0000)
commita0adc4628e74136e9fc3fa6ace0a8adbc631e9c9
treec54ac24727330acad5fffd757d8bab0fb7501dda
parenta8a8e4e73f4e143fd329046dafa5619cb5cf89b2
MFC r295900, r295768 to usr.sbin/iostat

r295768 | asomers | 2016-02-18 13:08:01 -0700 (Thu, 18 Feb 2016) | 14 lines

Fix compiler warnings in iostat

Raise WARNS from 1 to 6 (the default)
Fix warnings:
* Use C99 designated initializers for structs, and initialize all fields
* Mark global variables as static
* Mark unused function arguments
* Be careful about signed/unsigned comparisons

r295900 | asomers | 2016-02-22 14:40:53 -0700 (Mon, 22 Feb 2016) | 10 lines

Fix the usr.sbin/iostat build with GCC, broken by r295768

Renamed some local variables for compatibility with -Wshadow

git-svn-id: svn://svn.freebsd.org/base/stable/10@296995 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/iostat/Makefile
usr.sbin/iostat/iostat.c