]> git.ipfire.org Git - thirdparty/plymouth.git/commit
ply-keyfile: Change ply_key_file_get_long () into ply_key_file_get_ulong ()
authorHans de Goede <hdegoede@redhat.com>
Mon, 17 Feb 2025 15:05:54 +0000 (16:05 +0100)
committerHans de Goede <hdegoede@redhat.com>
Tue, 4 Mar 2025 11:35:05 +0000 (12:35 +0100)
commitbf80db4ec319d2f64071aa1f750e23d40b5d5fc5
tree543a521f24a745ecb4e7752468fed4ec7ea32cf0
parentd42a2830bd7c1cdc1012d35e05c65dc2ca1a3603
ply-keyfile: Change ply_key_file_get_long () into ply_key_file_get_ulong ()

Change ply_key_file_get_long () into ply_key_file_get_ulong () and add
error checking.

All callers of ply_key_file_get_long () expect a positive / unsigned number.
Rename it to ply_key_file_get_ulong ().

Also add error checkig for non valid numbers and return the default value
for these instead of 0.

Note this also fixes the return value of ply_key_file_get_long () being
a double (this is now changed to an unsigned long).

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
src/libply/ply-key-file.c
src/libply/ply-key-file.h
src/plugins/splash/fade-throbber/plugin.c
src/plugins/splash/script/plugin.c
src/plugins/splash/space-flares/plugin.c
src/plugins/splash/two-step/plugin.c