summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-05-30 16:26:17 +0200
committerGünther Deschner <gd@samba.org>2011-05-30 17:41:18 +0200
commit508e1607764d993c4d9a84793ffb7cfd22357f91 (patch)
treed21d7ea399a51be6bfb1c2284a30c023196fc281 /source3/printing
parentbcc08dcc5258666bd1811806a35958cc68e7fc30 (diff)
downloadsamba-508e1607764d993c4d9a84793ffb7cfd22357f91.tar.gz
samba-508e1607764d993c4d9a84793ffb7cfd22357f91.tar.bz2
samba-508e1607764d993c4d9a84793ffb7cfd22357f91.zip
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
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/nt_printing_tdb.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/source3/printing/nt_printing_tdb.c b/source3/printing/nt_printing_tdb.c
index e321b905d5..3c4c661b11 100644
--- a/source3/printing/nt_printing_tdb.c
+++ b/source3/printing/nt_printing_tdb.c
@@ -162,7 +162,6 @@ static int sec_desc_upg_fn( TDB_CONTEXT *the_tdb, TDB_DATA key,
struct security_descriptor *sec, *new_sec;
TALLOC_CTX *ctx = state;
int result, i;
- uint32 sd_size;
size_t size_new_sec;
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 */
- 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);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(0,("sec_desc_upg_fn: Failed to parse new sec_desc for %s\n", key.dptr ));