summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-10-21 04:07:56 +0000
committerTim Potter <tpot@samba.org>2002-10-21 04:07:56 +0000
commit346c9845a8892c336ae39e5efe7a8ef7e2a2afd1 (patch)
tree88fdf55a170f844c2e549b4c1ad0e46dc44992c4 /source3
parent1188b37d6a3aae189502f263d610ea77a85dd972 (diff)
downloadsamba-346c9845a8892c336ae39e5efe7a8ef7e2a2afd1.tar.gz
samba-346c9845a8892c336ae39e5efe7a8ef7e2a2afd1.tar.bz2
samba-346c9845a8892c336ae39e5efe7a8ef7e2a2afd1.zip
Fix a silly memset typo.
Change a int* to a uint32* in the cli_spoolss_enum_ports() function. (This used to be commit 41a22b3a005876bccacd1f14d70547d2d71d1b1f)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_client/cli_spoolss.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_client/cli_spoolss.c b/source3/rpc_client/cli_spoolss.c
index 2c3d48301b..92077f9637 100644
--- a/source3/rpc_client/cli_spoolss.c
+++ b/source3/rpc_client/cli_spoolss.c
@@ -159,7 +159,7 @@ static void decode_port_info_2(TALLOC_CTX *mem_ctx, NEW_BUFFER *buffer,
PORT_INFO_2 *inf;
inf=(PORT_INFO_2*)talloc(mem_ctx, returned*sizeof(PORT_INFO_2));
- memset(info, 0, returned*sizeof(PORT_INFO_2));
+ memset(inf, 0, returned*sizeof(PORT_INFO_2));
prs_set_offset(&buffer->prs, 0);
@@ -499,7 +499,7 @@ WERROR cli_spoolss_enum_printers(struct cli_state *cli, TALLOC_CTX *mem_ctx,
WERROR cli_spoolss_enum_ports(struct cli_state *cli, TALLOC_CTX *mem_ctx,
uint32 offered, uint32 *needed,
- uint32 level, int *num_ports, PORT_INFO_CTR *ctr)
+ uint32 level, uint32 *num_ports, PORT_INFO_CTR *ctr)
{
prs_struct qbuf, rbuf;
SPOOL_Q_ENUMPORTS q;