HomeFreeBSD

Improve portability of config(8).
rS223744Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

Improve portability of config(8).

  • Use strlen(dp->d_name) instead of the unportable dp->d_namlen. Rename i to len to make it slightly more descriptive and prevent negative indexing of the array.
  • Replace index() by strchr().

This supposedly fixes compilation on GNU systems.

Submitted by: Robert Millan <rmh debian org> (original patch)
MFC after: 3 weeks

Details

Provenance
edAuthored on
Parents
rS223743: MFC r219847, r221898, r221899, r222224, r223584, r223585:
Branches
Unknown
Tags
Unknown

Event Timeline