makefs(8): use NULL instead of zero for pointers.

This commit is contained in:
Pedro F. Giffuni 2016-05-17 16:58:39 +00:00
parent 7cde0202f7
commit 9f36c1fa71

View File

@ -774,7 +774,7 @@ cd9660_setup_volume_descriptors(void)
temp->next = t;
memset(t->volumeDescriptorData, 0, 2048);
t->volumeDescriptorData[0] = ISO_VOLUME_DESCRIPTOR_TERMINATOR;
t->next = 0;
t->next = NULL;
t->volumeDescriptorData[6] = 1;
t->sector = sector;
memcpy(t->volumeDescriptorData + 1,
@ -1403,7 +1403,7 @@ cd9660_convert_structure(fsnode *root, cd9660node *parent_node, int level,
this_node->level =
working_level - 1;
if (cd9660_rrip_move_directory(
this_node) == 0) {
this_node) == NULL) {
warnx("Failure in "
"cd9660_rrip_"
"move_directory"
@ -1416,7 +1416,7 @@ cd9660_convert_structure(fsnode *root, cd9660node *parent_node, int level,
}
/* Do the recursive call on the children */
if (iterator->child != 0) {
if (iterator->child != NULL) {
cd9660_convert_structure(
iterator->child, this_node,
working_level,
@ -1445,7 +1445,7 @@ cd9660_convert_structure(fsnode *root, cd9660node *parent_node, int level,
}
/*Allocate new temp_node */
if (iterator->next != 0) {
if (iterator->next != NULL) {
this_node = cd9660_allocate_cd9660node();
if (this_node == NULL)
CD9660_MEM_ALLOC_ERROR(__func__);
@ -1733,7 +1733,7 @@ cd9660_convert_filename(const char *oldname, char *newname, int is_file)
{
assert(1 <= diskStructure.isoLevel && diskStructure.isoLevel <= 2);
/* NEW */
cd9660_filename_conversion_functor conversion_function = 0;
cd9660_filename_conversion_functor conversion_function = NULL;
if (diskStructure.isoLevel == 1)
conversion_function = &cd9660_level1_convert_filename;
else if (diskStructure.isoLevel == 2)