]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r356723-r356725, r357649, r357652: diff(1) catch-up
authorKyle Evans <kevans@FreeBSD.org>
Mon, 27 Apr 2020 22:33:32 +0000 (22:33 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Mon, 27 Apr 2020 22:33:32 +0000 (22:33 +0000)
commit159755a7a8f1c383404da972352cf802a4fef3f4
tree5cba7c421f6590d6f22c6f5a957ceea4dbd54b73
parent16b191081dbc396875fd99c724de30f263ef5dff
MFC r356723-r356725, r357649, r357652: diff(1) catch-up

r356723:
mkstemp returns -1

r356724:
asprintf returns -1, not an arbitrary value < 0. Also upon error the
(very sloppy specification) leaves an undefined value in *ret, so it is
wrong to inspect it, the error condition is enough.

r356725:
When system calls indicate an error they return -1, not some arbitrary
value < 0.  errno is only updated in this case.

r357649:
Update diff(1) TODO removing what has been implemented

r357652:
Fix most of the style warnings
usr.bin/diff/TODO
usr.bin/diff/diff.1
usr.bin/diff/diff.c
usr.bin/diff/diffreg.c
usr.bin/diff/xmalloc.c