]> git.ipfire.org Git - thirdparty/systemd.git/commit
test-fileio: cast EOF to (char) before comparing with char explicitly
authorLennart Poettering <lennart@poettering.net>
Mon, 25 Nov 2019 14:15:38 +0000 (15:15 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 26 Nov 2019 13:55:47 +0000 (14:55 +0100)
commit72fd79b3ceff4004e2fbf8b324f418cfa86b59f7
tree1cb79fb277e540b4589c2d940594141de26018de
parent6eee88577ddf9e3d7f8d3298fca596b52f9017a0
test-fileio: cast EOF to (char) before comparing with char explicitly

EOF is defined to -1, hence on platforms that have "char" unsigned we
can't compare it as-is, except if we accept an implicit cast. let's make
it an explicit cast, acknowledging the issue.

Fixes: #14118
src/test/test-fileio.c