HomeFreeBSD

Fix warnings with gcc 5.0

Description

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(..)

MFC after: 5 days
Sponsored by: EMC / Isilon Storage Division

Details

Provenance
ngieAuthored on Jan 16 2016, 2:15 AM
Parents
rGc084ac288389: Test for EPROTOTYPE not EPROTONOSUPPORT
Branches
Unknown
Tags
Unknown

Event Timeline