Page MenuHomeFreeBSD

Make code compile when basename() is POSIX compliant.
ClosedPublic

Authored by ed on May 19 2016, 7:49 PM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 25 2024, 3:21 AM
Unknown Object (File)
Dec 20 2023, 12:56 AM
Unknown Object (File)
Nov 28 2023, 4:28 AM
Unknown Object (File)
Nov 28 2023, 3:56 AM
Unknown Object (File)
Nov 25 2023, 5:20 AM
Unknown Object (File)
Nov 22 2023, 3:50 PM
Unknown Object (File)
Nov 22 2023, 9:06 AM
Unknown Object (File)
Nov 13 2023, 9:01 AM
Subscribers

Details

Summary

If basename() uses "char *", we shouldn't do the intermediate
assignment, as that field is of type "const char *". Simply call
basename() on the command line argument directly.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ed retitled this revision from to Make code compile when basename() is POSIX compliant..
ed updated this object.
ed edited the test plan for this revision. (Show Details)
ed added reviewers: emaste, bdrewery.
emaste edited edge metadata.

ELF Tool Chain ar.c already has this form.

This revision is now accepted and ready to land.May 19 2016, 7:58 PM
This revision was automatically updated to reflect the committed changes.