]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r294126:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 21 Jan 2016 05:59:33 +0000 (05:59 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 21 Jan 2016 05:59:33 +0000 (05:59 +0000)
commit7592a71e4a1bd71c620b9e9b375dd132345f049c
tree119882c48c1d21da8c136475a0d751f111fc172b
parentf34c74e17d5f215cb945437b0f8ac906ae3775c6
MFC r294126:

Fix warnings with gcc 5.0

reconnect.c:
- Convert the K&R prototype of main to an ANSI prototype to mute a
  warning from gcc 4.2.1
- Close s_sock2 after finishing off the last test to plug a leak and
  mute a warning from gcc 5.0 about a -Wunused-but-set variable

sendfile.c:
- Fix a -Wunused-but-set warning with gcc 5.0 with pagesize in main(..)

git-svn-id: svn://svn.freebsd.org/base/stable/10@294486 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
tools/regression/sockets/reconnect/reconnect.c
tools/regression/sockets/sendfile/sendfile.c