Fully initialize the custom_operations structs

Use also custom_compare_ext_default for the compare_ext field.

According to the git logs, this was introduced in OCaml 3.12.1, which is
earlier than out minimum required version.

mlaugeas is not touched by this change, since it is a copy of a 3rd
party library (and thus it will be fixed there first).
This commit is contained in:
Pino Toscano
2017-10-09 10:41:21 +02:00
parent 7291fed7fb
commit 9bb1e52253
5 changed files with 14 additions and 7 deletions

View File

@@ -97,7 +97,8 @@ static struct custom_operations custom_operations = {
custom_compare_default,
custom_hash_default,
custom_serialize_default,
custom_deserialize_default
custom_deserialize_default,
custom_compare_ext_default,
};
static value

View File

@@ -52,7 +52,8 @@ static struct custom_operations progress_bar_custom_operations = {
custom_compare_default,
custom_hash_default,
custom_serialize_default,
custom_deserialize_default
custom_deserialize_default,
custom_compare_ext_default,
};
value

View File

@@ -49,7 +49,8 @@ static struct custom_operations docptr_custom_operations = {
custom_compare_default,
custom_hash_default,
custom_serialize_default,
custom_deserialize_default
custom_deserialize_default,
custom_compare_ext_default,
};
value
@@ -71,7 +72,8 @@ static struct custom_operations xpathctxptr_custom_operations = {
custom_compare_default,
custom_hash_default,
custom_serialize_default,
custom_deserialize_default
custom_deserialize_default,
custom_compare_ext_default,
};
value
@@ -93,7 +95,8 @@ static struct custom_operations xpathobjptr_custom_operations = {
custom_compare_default,
custom_hash_default,
custom_serialize_default,
custom_deserialize_default
custom_deserialize_default,
custom_compare_ext_default,
};
value

View File

@@ -96,7 +96,8 @@ static struct custom_operations guestfs_custom_operations = {
custom_compare_default,
custom_hash_default,
custom_serialize_default,
custom_deserialize_default
custom_deserialize_default,
custom_compare_ext_default,
};
static value

View File

@@ -51,7 +51,8 @@ static struct custom_operations qemuopts_custom_operations = {
custom_compare_default,
custom_hash_default,
custom_serialize_default,
custom_deserialize_default
custom_deserialize_default,
custom_compare_ext_default,
};
value