From 5d736d87778754de7043d902c7d1d5db1c46cb02 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 15 Jun 2011 02:34:53 +0200 Subject: s3:utils/net_*registry: use c99 initializers which are supported by old gcc 2.95 compilers (bug #8226) metze Autobuild-User: Stefan Metzmacher Autobuild-Date: Wed Jun 15 03:48:41 CEST 2011 on sn-devel-104 --- source3/utils/net_registry.c | 8 +++++--- source3/utils/net_rpc_registry.c | 4 +++- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'source3') diff --git a/source3/utils/net_registry.c b/source3/utils/net_registry.c index ab8fb4e3a7..086c4e7ccc 100644 --- a/source3/utils/net_registry.c +++ b/source3/utils/net_registry.c @@ -1039,9 +1039,11 @@ static int net_registry_import(struct net_context *c, int argc, .createkey = (reg_import_callback_createkey_t)&import_create_key, .deletekey = (reg_import_callback_deletekey_t)&import_delete_key, .deleteval = (reg_import_callback_deleteval_t)&import_delete_val, - .setval.registry_value = (reg_import_callback_setval_registry_value_t) - &import_create_val, - .setval_type = REGISTRY_VALUE, + .setval = { + .registry_value = (reg_import_callback_setval_registry_value_t) + &import_create_val, + }, + .setval_type = REGISTRY_VALUE, .data = &import_ctx }; diff --git a/source3/utils/net_rpc_registry.c b/source3/utils/net_rpc_registry.c index fedc432c5a..9195bd477d 100644 --- a/source3/utils/net_rpc_registry.c +++ b/source3/utils/net_rpc_registry.c @@ -1959,7 +1959,9 @@ static NTSTATUS rpc_registry_import_internal(struct net_context *c, .createkey = (reg_import_callback_createkey_t)&import_create_key, .deletekey = (reg_import_callback_deletekey_t)&import_delete_key, .deleteval = (reg_import_callback_deleteval_t)&import_delete_val, - .setval.blob = (reg_import_callback_setval_blob_t)&import_create_val, + .setval = { + .blob = (reg_import_callback_setval_blob_t)&import_create_val, + }, .setval_type = BLOB, .data = &import_ctx }; -- cgit