summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-03-27 21:04:31 +0100
committerGünther Deschner <gd@samba.org>2008-03-27 21:04:31 +0100
commit20d77db81fbc4dd3fbd4f1ee2e5041641096f197 (patch)
tree558deabdad8330978461f96b792350ed3c922415 /source3/utils
parent3fe908448eff8f85200c075cd2fe389e5b40ba5f (diff)
downloadsamba-20d77db81fbc4dd3fbd4f1ee2e5041641096f197.tar.gz
samba-20d77db81fbc4dd3fbd4f1ee2e5041641096f197.tar.bz2
samba-20d77db81fbc4dd3fbd4f1ee2e5041641096f197.zip
Minor fix for net rpc samdump.
Guenther (This used to be commit 2f5e25be276135e9cb4cc0c44ec573d466def66e)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_rpc_samsync.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source3/utils/net_rpc_samsync.c b/source3/utils/net_rpc_samsync.c
index 775270a69b..c1dcf076ba 100644
--- a/source3/utils/net_rpc_samsync.c
+++ b/source3/utils/net_rpc_samsync.c
@@ -280,7 +280,8 @@ static void display_sam_entry(struct netr_DELTA_ENUM *r)
}
}
-static void dump_database(struct rpc_pipe_client *pipe_hnd, uint32 db_type)
+static void dump_database(struct rpc_pipe_client *pipe_hnd,
+ enum netr_SamDatabaseID database_id)
{
NTSTATUS result;
int i;
@@ -289,7 +290,6 @@ static void dump_database(struct rpc_pipe_client *pipe_hnd, uint32 db_type)
const char *computername = global_myname();
struct netr_Authenticator credential;
struct netr_Authenticator return_authenticator;
- enum netr_SamDatabaseID database_id = db_type;
uint16_t restart_state = 0;
uint32_t sync_context = 0;
@@ -297,7 +297,7 @@ static void dump_database(struct rpc_pipe_client *pipe_hnd, uint32 db_type)
return;
}
- switch( db_type ) {
+ switch(database_id) {
case SAM_DATABASE_DOMAIN:
d_printf("Dumping DOMAIN database\n");
break;
@@ -308,7 +308,8 @@ static void dump_database(struct rpc_pipe_client *pipe_hnd, uint32 db_type)
d_printf("Dumping PRIVS databases\n");
break;
default:
- d_printf("Dumping unknown database type %u\n", db_type );
+ d_printf("Dumping unknown database type %u\n",
+ database_id);
break;
}