]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make code compile when basename() is POSIX compliant.
authored <ed@FreeBSD.org>
Thu, 19 May 2016 20:03:01 +0000 (20:03 +0000)
committered <ed@FreeBSD.org>
Thu, 19 May 2016 20:03:01 +0000 (20:03 +0000)
commit28c859fd2eda4a094195523aee64b87ed3cb21b2
treed79528545a62cbb6c223392d3cde3b0aea456d38
parentf6dffc405c7096f010b1b300da305496e6eccfbf
Make code compile when basename() is POSIX compliant.

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.

Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D6463
usr.bin/ar/ar.c