Fix a silly memset typo.
authorTim Potter <tpot@samba.org>
Mon, 21 Oct 2002 04:03:49 +0000 (04:03 +0000)
committerTim Potter <tpot@samba.org>
Mon, 21 Oct 2002 04:03:49 +0000 (04:03 +0000)
Change a int* to a uint32* in the cli_spoolss_enum_ports() function.

source/rpc_client/cli_spoolss.c

index 2c3d48301b4ef5d220d17ef8beecfcf2679585b8..92077f963779ecfd98eacc8fa29d6663f1ed346c 100644 (file)
@@ -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;