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)
Tue, Dec 24, 8:28 AM
Unknown Object (File)
Nov 29 2024, 8:31 PM
Unknown Object (File)
Nov 21 2024, 10:53 PM
Unknown Object (File)
Sep 18 2024, 5:27 AM
Unknown Object (File)
Sep 12 2024, 6:38 PM
Unknown Object (File)
Sep 12 2024, 1:01 AM
Unknown Object (File)
Sep 12 2024, 1:01 AM
Unknown Object (File)
Sep 9 2024, 11:24 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.