mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
s3: fix some -Wunused-but-set-variable build warnings.
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Mon May 30 17:41:18 CEST 2011 on sn-devel-104
This commit is contained in:
@ -3137,7 +3137,6 @@ WERROR NetUserSetGroups_r(struct libnetapi_ctx *ctx,
|
|||||||
size_t num_del_rids = 0;
|
size_t num_del_rids = 0;
|
||||||
|
|
||||||
uint32_t *member_rids = NULL;
|
uint32_t *member_rids = NULL;
|
||||||
size_t num_member_rids = 0;
|
|
||||||
|
|
||||||
struct GROUP_USERS_INFO_0 *i0 = NULL;
|
struct GROUP_USERS_INFO_0 *i0 = NULL;
|
||||||
struct GROUP_USERS_INFO_1 *i1 = NULL;
|
struct GROUP_USERS_INFO_1 *i1 = NULL;
|
||||||
@ -3263,7 +3262,6 @@ WERROR NetUserSetGroups_r(struct libnetapi_ctx *ctx,
|
|||||||
}
|
}
|
||||||
|
|
||||||
member_rids = group_rids.ids;
|
member_rids = group_rids.ids;
|
||||||
num_member_rids = group_rids.count;
|
|
||||||
|
|
||||||
status = dcerpc_samr_GetGroupsForUser(b, talloc_tos(),
|
status = dcerpc_samr_GetGroupsForUser(b, talloc_tos(),
|
||||||
&user_handle,
|
&user_handle,
|
||||||
|
@ -479,9 +479,8 @@ static void tstream_cli_np_writev_disconnect_done(struct tevent_req *subreq)
|
|||||||
tevent_req_data(req, struct tstream_cli_np_writev_state);
|
tevent_req_data(req, struct tstream_cli_np_writev_state);
|
||||||
struct tstream_cli_np *cli_nps =
|
struct tstream_cli_np *cli_nps =
|
||||||
tstream_context_data(state->stream, struct tstream_cli_np);
|
tstream_context_data(state->stream, struct tstream_cli_np);
|
||||||
NTSTATUS status;
|
|
||||||
|
|
||||||
status = cli_close_recv(subreq);
|
cli_close_recv(subreq);
|
||||||
TALLOC_FREE(subreq);
|
TALLOC_FREE(subreq);
|
||||||
|
|
||||||
cli_nps->cli = NULL;
|
cli_nps->cli = NULL;
|
||||||
@ -853,9 +852,8 @@ static void tstream_cli_np_readv_disconnect_done(struct tevent_req *subreq)
|
|||||||
tevent_req_data(req, struct tstream_cli_np_readv_state);
|
tevent_req_data(req, struct tstream_cli_np_readv_state);
|
||||||
struct tstream_cli_np *cli_nps =
|
struct tstream_cli_np *cli_nps =
|
||||||
tstream_context_data(state->stream, struct tstream_cli_np);
|
tstream_context_data(state->stream, struct tstream_cli_np);
|
||||||
NTSTATUS status;
|
|
||||||
|
|
||||||
status = cli_close_recv(subreq);
|
cli_close_recv(subreq);
|
||||||
TALLOC_FREE(subreq);
|
TALLOC_FREE(subreq);
|
||||||
|
|
||||||
cli_nps->cli = NULL;
|
cli_nps->cli = NULL;
|
||||||
|
@ -936,10 +936,8 @@ static NTSTATUS process_dc_netbios(TALLOC_CTX *mem_ctx,
|
|||||||
|
|
||||||
for (i=0; i<num_dcs; i++) {
|
for (i=0; i<num_dcs; i++) {
|
||||||
uint16_t val;
|
uint16_t val;
|
||||||
int dgm_id;
|
|
||||||
|
|
||||||
generate_random_buffer((uint8_t *)&val, 2);
|
generate_random_buffer((uint8_t *)&val, 2);
|
||||||
dgm_id = val;
|
|
||||||
|
|
||||||
ip_list.ss = dclist[i].ss;
|
ip_list.ss = dclist[i].ss;
|
||||||
ip_list.port = 0;
|
ip_list.port = 0;
|
||||||
|
@ -162,7 +162,6 @@ static int sec_desc_upg_fn( TDB_CONTEXT *the_tdb, TDB_DATA key,
|
|||||||
struct security_descriptor *sec, *new_sec;
|
struct security_descriptor *sec, *new_sec;
|
||||||
TALLOC_CTX *ctx = state;
|
TALLOC_CTX *ctx = state;
|
||||||
int result, i;
|
int result, i;
|
||||||
uint32 sd_size;
|
|
||||||
size_t size_new_sec;
|
size_t size_new_sec;
|
||||||
|
|
||||||
if (!data.dptr || data.dsize == 0) {
|
if (!data.dptr || data.dsize == 0) {
|
||||||
@ -236,9 +235,6 @@ static int sec_desc_upg_fn( TDB_CONTEXT *the_tdb, TDB_DATA key,
|
|||||||
|
|
||||||
/* store it back */
|
/* store it back */
|
||||||
|
|
||||||
sd_size = ndr_size_security_descriptor(sd_store->sd, 0)
|
|
||||||
+ sizeof(struct sec_desc_buf);
|
|
||||||
|
|
||||||
status = marshall_sec_desc_buf(ctx, sd_store, &data.dptr, &data.dsize);
|
status = marshall_sec_desc_buf(ctx, sd_store, &data.dptr, &data.dsize);
|
||||||
if (!NT_STATUS_IS_OK(status)) {
|
if (!NT_STATUS_IS_OK(status)) {
|
||||||
DEBUG(0,("sec_desc_upg_fn: Failed to parse new sec_desc for %s\n", key.dptr ));
|
DEBUG(0,("sec_desc_upg_fn: Failed to parse new sec_desc for %s\n", key.dptr ));
|
||||||
|
Reference in New Issue
Block a user