diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-06-15 02:34:53 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-06-15 03:48:41 +0200 |
commit | 5d736d87778754de7043d902c7d1d5db1c46cb02 (patch) | |
tree | 8a4cf7a41c7237b569b0258e31f0b8e3984cb03c /source3 | |
parent | df6b877cc2a868f0a05192f1c524831c177fa1cb (diff) | |
download | samba-5d736d87778754de7043d902c7d1d5db1c46cb02.tar.gz samba-5d736d87778754de7043d902c7d1d5db1c46cb02.tar.bz2 samba-5d736d87778754de7043d902c7d1d5db1c46cb02.zip |
s3:utils/net_*registry: use c99 initializers which are supported by old gcc 2.95 compilers (bug #8226)
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Jun 15 03:48:41 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r-- | source3/utils/net_registry.c | 8 | ||||
-rw-r--r-- | source3/utils/net_rpc_registry.c | 4 |
2 files changed, 8 insertions, 4 deletions
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 }; |