MFC r309232-309234:r309232: Fix an obvious typo.r309233: Eliminate variables that are computed, assigned but never used.r309234: pages and psize are always assigned, so there is no need to initialize them as zero.
MFC r281181, r281182;sort(1): Cleanups and a small memory leak.Remove custom getdelim(3) and fix a small memory leak.Obtained from: OpenBSD