diff options
author | Jeremy Allison <jra@samba.org> | 2006-06-28 21:52:56 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:19:06 -0500 |
commit | 3c9a5c7b5821e484b6057c9fdcab3210cc20733b (patch) | |
tree | c9ca08e53b9e6b920ae37a294cf3e71c455508cd /source3/rpcclient | |
parent | 55f8ed0a815cfd1563a835b1a73c0c880299a831 (diff) | |
download | samba-3c9a5c7b5821e484b6057c9fdcab3210cc20733b.tar.gz samba-3c9a5c7b5821e484b6057c9fdcab3210cc20733b.tar.bz2 samba-3c9a5c7b5821e484b6057c9fdcab3210cc20733b.zip |
r16654: Fix bug #3893 reported by jason@ncac.gwu.edu.
Jeremy.
(This used to be commit 787539489897e79d43eb1833db6f5969b130c934)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r-- | source3/rpcclient/cmd_spoolss.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source3/rpcclient/cmd_spoolss.c b/source3/rpcclient/cmd_spoolss.c index 7f8bbbcd8c..ed5653eb70 100644 --- a/source3/rpcclient/cmd_spoolss.c +++ b/source3/rpcclient/cmd_spoolss.c @@ -1895,7 +1895,7 @@ static WERROR cmd_spoolss_enum_forms(struct rpc_pipe_client *cli, WERROR werror; char *servername = NULL, *printername = NULL; BOOL got_handle = False; - uint32 needed, offered, num_forms, level = 1, i; + uint32 num_forms, level = 1, i; FORM_1 *forms; /* Parse the command arguements */ @@ -1922,7 +1922,6 @@ static WERROR cmd_spoolss_enum_forms(struct rpc_pipe_client *cli, /* Enumerate forms */ - offered = needed = 0; werror = rpccli_spoolss_enumforms(cli, mem_ctx, &handle, level, &num_forms, &forms); if (!W_ERROR_IS_OK(werror)) @@ -2150,7 +2149,7 @@ static WERROR cmd_spoolss_enum_jobs(struct rpc_pipe_client *cli, const char **argv) { WERROR result; - uint32 needed, offered, level = 1, num_jobs, i; + uint32 level = 1, num_jobs, i; BOOL got_hnd = False; pstring printername; fstring servername, user; @@ -2185,7 +2184,6 @@ static WERROR cmd_spoolss_enum_jobs(struct rpc_pipe_client *cli, /* Enumerate ports */ - offered = needed = 0; result = rpccli_spoolss_enumjobs(cli, mem_ctx, &hnd, level, 0, 1000, &num_jobs, &ctr); |