9725 getent has unused variables and implicit function declarations

Review Request #1159 — Created Aug. 12, 2018 and submitted

ptribble
illumos-gate
9725
general

There are a couple of compiler gags in getent hiding unused variables and an implicit function declaration, so fix the problems and enable the warnings.

Test build is clean.

Tested the resulting getent binary against the shadow and netmasks databases, output is unchanged from original.

wiedi
  1. Ship It!
  2. 
      
yuripv
  1. Ship It!
  2. 
      
domag02
  1. Ship It!
  2. 
      
ptribble
Review request changed

Status: Closed (submitted)

Loading...