static const u8 good_file_magic[] = "LARCHIVE";
struct cbfs_priv {
- int initialized;
+ bool initialized;
struct cbfs_header header;
struct cbfs_cachenode *file_cache;
enum cbfs_result result;
{
u8 *start_of_rom;
- priv->initialized = 0;
+ priv->initialized = false;
if (file_cbfs_load_header(end_of_rom, &priv->header))
return;
file_cbfs_fill_cache(priv, start_of_rom, priv->header.rom_size,
priv->header.align);
if (priv->result == CBFS_SUCCESS)
- priv->initialized = 1;
+ priv->initialized = true;
}
void file_cbfs_init(ulong end_of_rom)
if (priv->result != CBFS_SUCCESS)
return -EINVAL;
- priv->initialized = 1;
+ priv->initialized = true;
priv = malloc(sizeof(priv_s));
if (!priv)
return -ENOMEM;