diff options
author | Andreas Schneider <asn@samba.org> | 2013-12-04 14:01:51 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2013-12-06 01:14:09 +0100 |
commit | 3b3b52c013bdf61fdf58c9725eb4a0843a1a1fb6 (patch) | |
tree | 1552f9bed6dea3cd754d80bf966b7877920b0c56 /source4 | |
parent | 09cc58c1a7ffa29b509a688ab011503ebc7fd660 (diff) | |
download | samba-3b3b52c013bdf61fdf58c9725eb4a0843a1a1fb6.tar.gz samba-3b3b52c013bdf61fdf58c9725eb4a0843a1a1fb6.tar.xz samba-3b3b52c013bdf61fdf58c9725eb4a0843a1a1fb6.zip |
s4-torture: Fix some compile warnings in spoolss.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/rpc/spoolss.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c index e795a709c9..a77673508f 100644 --- a/source4/torture/rpc/spoolss.c +++ b/source4/torture/rpc/spoolss.c @@ -585,7 +585,7 @@ static bool test_EnumPrinterDrivers_findone(struct torture_context *tctx, "failed to enumerate printer drivers"); for (i=0; i < count; i++) { - const char *driver_name_ret; + const char *driver_name_ret = ""; switch (level) { case 1: driver_name_ret = info[i].info1.driver_name; @@ -1439,8 +1439,6 @@ static bool test_PrinterInfo(struct torture_context *tctx, bool ret = true; int i; - torture_skip(tctx, "Printer Info test is currently broken, skipping"); - uint32_t status_list[] = { /* these do not stick PRINTER_STATUS_PAUSED, @@ -1519,6 +1517,9 @@ static bool test_PrinterInfo(struct torture_context *tctx, 0x80000000 */ }; + torture_skip(tctx, "Printer Info test is currently broken, skipping"); + + ZERO_STRUCT(devmode_ctr); ZERO_STRUCT(secdesc_ctr); @@ -2132,7 +2133,6 @@ static bool test_devicemode_full(struct torture_context *tctx, { struct spoolss_SetPrinter s; struct spoolss_GetPrinter q; - struct spoolss_GetPrinter q0; struct spoolss_SetPrinterInfoCtr info_ctr; struct spoolss_SetPrinterInfo8 info8; union spoolss_PrinterInfo info; @@ -2184,7 +2184,6 @@ static bool test_devicemode_full(struct torture_context *tctx, q.in.handle = handle; q.out.info = &info; - q0 = q; #if 0 const char *devicename;/* [charset(UTF16)] */ @@ -3450,6 +3449,8 @@ static bool test_DoPrintTest_add_one_job(struct torture_context *tctx, uint32_t *job_id) { test_DoPrintTest_add_one_job_common(tctx, b, handle, document_name, "RAW", job_id); + + return true; } static bool test_DoPrintTest_add_one_job_v4(struct torture_context *tctx, @@ -3459,6 +3460,8 @@ static bool test_DoPrintTest_add_one_job_v4(struct torture_context *tctx, uint32_t *job_id) { test_DoPrintTest_add_one_job_common(tctx, b, handle, document_name, "XPS_PASS", job_id); + + return true; } |