HomeFreeBSD

gethostby_test: fix multiple warning types

Description

gethostby_test: fix multiple warning types

  • Fix -Wmissing-declaration warning by staticizing run_tests.
  • Fix -Wsign-compare warnings by casting size_t types to int for comparisons.

Reindent some of the code in sdump_hostent(..) to accomodate the
overall changes.

MFC after: 3 days
Sponsored by: Dell EMC Isilon

Details

Provenance
ngieAuthored on
Parents
rS319041: getproto_test: fix -Wunused warnings
Branches
Unknown
Tags
Unknown