summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2006-09-20 18:44:23 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:00:53 -0500
commit5cadb916220155bc0532f2c8a5facb690bc99ea2 (patch)
treed70475bb6ae2a37a0171a76e7806795b43c4dfc6 /source3
parentce95caf0df0a9c22cd9a2a2305f0323be3b668a5 (diff)
downloadsamba-5cadb916220155bc0532f2c8a5facb690bc99ea2.tar.gz
samba-5cadb916220155bc0532f2c8a5facb690bc99ea2.tar.bz2
samba-5cadb916220155bc0532f2c8a5facb690bc99ea2.zip
r18732: Fix build warning as pointed out by Volker.
Guenther (This used to be commit fccaff37132de499002b9be484055a4fbf722d0d)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpcclient/cmd_samr.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/source3/rpcclient/cmd_samr.c b/source3/rpcclient/cmd_samr.c
index 6f4d027cca..cc0fe61990 100644
--- a/source3/rpcclient/cmd_samr.c
+++ b/source3/rpcclient/cmd_samr.c
@@ -1373,18 +1373,14 @@ static NTSTATUS cmd_samr_get_dispenum_index(struct rpc_pipe_client *cli,
uint32 access_mask = MAXIMUM_ALLOWED_ACCESS;
uint16 info_level = 1;
uint32 idx;
- const char *name;
- if (argc > 6) {
+ if (argc < 2 || argc > 3) {
printf("Usage: %s mame [info level]\n", argv[0]);
return NT_STATUS_OK;
}
- if (argc >= 2)
- name = argv[1];
-
if (argc >= 3)
- sscanf(argv[2], "%hd", &info_level);
+ sscanf(argv[2], "%hd", &info_level);
/* Get sam policy handle */
@@ -1407,7 +1403,7 @@ static NTSTATUS cmd_samr_get_dispenum_index(struct rpc_pipe_client *cli,
/* Query display info index */
result = rpccli_samr_get_dispenum_index(cli, mem_ctx, &domain_pol,
- info_level, name, &idx);
+ info_level, argv[1], &idx);
if (!NT_STATUS_IS_OK(result)) {
goto done;
};