Fix return code of write_file()
authorMatthias Schiffer <mschiffer@universe-factory.net>
Sat, 16 May 2020 11:33:55 +0000 (13:33 +0200)
committerMatthias Schiffer <mschiffer@universe-factory.net>
Sat, 16 May 2020 12:14:02 +0000 (14:14 +0200)
commitafc86f352bf7915f81e9d38949e91306542aadee
tree2086fefc1b3d92c9468ecb75af430c0e1e42f14e
parentfdff10852326122134a60911a3b3c7c2aeab5723
Fix return code of write_file()

write_file() returns 1/true on success; it should return 0/false when
opening the file fails.

To make it more obvious that is function returns true and not 0 on
success, also change its return type to bool.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
ucert.c