]> git.ipfire.org Git - thirdparty/plymouth.git/commit
ply-device-manager: Add != 0 to strcmp calls
authorRay Strode <rstrode@redhat.com>
Fri, 25 Nov 2022 16:25:37 +0000 (11:25 -0500)
committerRay Strode <rstrode@redhat.com>
Tue, 29 Nov 2022 14:22:06 +0000 (09:22 -0500)
commit111b96875930bce81249afaee6a419ab1a2a8466
treee6e6857ab5bb6fce56d447b6b624fbb7cd6e80b2
parentab0559893eb1a53896b2de54743464dda9682c69
ply-device-manager: Add != 0 to strcmp calls

strcmp is kind of a confusing function in that it returns
non-zero when the strings are not equal. That is
especially counterintuitive when this non-zero value is
treated as a TRUE boolean.

This commit just adds some != 0's to a couple of strcmp
calls for clarity.
src/libply-splash-core/ply-device-manager.c