summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-04-27 16:38:40 +0200
committerGünther Deschner <gd@samba.org>2010-04-27 16:42:15 +0200
commit6864828d9d85dacff0ca9df73761a98d2ceb9f2e (patch)
treeb37f68f3310dc302941e8ebafcc2fc5c791bf7c9 /source3/utils
parenta833be0c4e44135e4f45b3d460586762da04cf32 (diff)
downloadsamba-6864828d9d85dacff0ca9df73761a98d2ceb9f2e.tar.gz
samba-6864828d9d85dacff0ca9df73761a98d2ceb9f2e.tar.bz2
samba-6864828d9d85dacff0ca9df73761a98d2ceb9f2e.zip
s3: use shared registry functions.
Guenther
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_registry.c2
-rw-r--r--source3/utils/net_registry_util.c2
-rw-r--r--source3/utils/net_rpc_registry.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/source3/utils/net_registry.c b/source3/utils/net_registry.c
index 3b55c1406b..ae9cdde2fb 100644
--- a/source3/utils/net_registry.c
+++ b/source3/utils/net_registry.c
@@ -418,7 +418,7 @@ static void net_registry_increment_fn(void *private_data)
if (value->type != REG_DWORD) {
d_fprintf(stderr, _("value not a DWORD: %s\n"),
- reg_type_lookup(value->type));
+ str_regtype(value->type));
goto done;
}
diff --git a/source3/utils/net_registry_util.c b/source3/utils/net_registry_util.c
index 3d1919cbf1..0b0f617222 100644
--- a/source3/utils/net_registry_util.c
+++ b/source3/utils/net_registry_util.c
@@ -37,7 +37,7 @@ void print_registry_value(const struct registry_value *valvalue, bool raw)
{
if (!raw) {
d_printf(_("Type = %s\n"),
- reg_type_lookup(valvalue->type));
+ str_regtype(valvalue->type));
}
switch(valvalue->type) {
case REG_DWORD:
diff --git a/source3/utils/net_rpc_registry.c b/source3/utils/net_rpc_registry.c
index 28a1c8d82f..2400af4601 100644
--- a/source3/utils/net_rpc_registry.c
+++ b/source3/utils/net_rpc_registry.c
@@ -955,7 +955,7 @@ static void dump_values( REGF_NK_REC *nk )
for ( i=0; i<nk->num_values; i++ ) {
d_printf( "\"%s\" = ", nk->values[i].valuename ? nk->values[i].valuename : "(default)" );
- d_printf( "(%s) ", reg_type_lookup( nk->values[i].type ) );
+ d_printf( "(%s) ", str_regtype( nk->values[i].type ) );
data_size = nk->values[i].data_size & ~VK_DATA_IN_OFFSET;
switch ( nk->values[i].type ) {