Source-Changes archive

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

CVS commit: src/games/caesar



Module Name:    src
Committed By:   rillig
Date:           Tue Nov 16 20:42:47 UTC 2021

Modified Files:
        src/games/caesar: caesar.c

Log Message:
games/caesar: fix error handling for I/O

The '!= 0' is needed for an upcoming fix to lint's strict bool mode.

The additional text in the error messages is necessary because errx only
outputs the given string, with no details from errno.  Since ferror does
not set errno, no such details are available, so just output a generic
message, which is still better than just "caesar: <stdout>".


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/games/caesar/caesar.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