Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/usr.bin/getnameinfo



Module Name:    src
Committed By:   riastradh
Date:           Wed Feb  5 12:45:54 UTC 2025

Modified Files:
        src/usr.bin/getnameinfo: getnameinfo.c

Log Message:
getnameinfo(1): Test fflush+ferror, not printf failure.

printf is unlikely to flush after a short output, so testing it for
failure doesn't help in that case -- but if printf does flush and the
flush fails, the failure will be persistent in ferror until we test
it.  So the old way might have failed to catch some output failures,
but the new way catches everything the old way caught and more.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/usr.bin/getnameinfo/getnameinfo.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index