summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-04-12 13:44:19 +0200
committerStefan Metzmacher <metze@samba.org>2010-04-12 16:18:11 +0200
commit9ef235ed0a833be671600c5efc2e8bf456c03c96 (patch)
treead44069b2833af9008d8676e5a025812b07e0577
parentc168e5ce507951c0e54e5a612b70fb82b2df3e63 (diff)
downloadsamba-9ef235ed0a833be671600c5efc2e8bf456c03c96.tar.gz
samba-9ef235ed0a833be671600c5efc2e8bf456c03c96.tar.bz2
samba-9ef235ed0a833be671600c5efc2e8bf456c03c96.zip
s4:tortore/rpc/spoolss.c: fix declaration after code warning
metze
-rw-r--r--source4/torture/rpc/spoolss.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c
index 19647f3acd..c9762196e4 100644
--- a/source4/torture/rpc/spoolss.c
+++ b/source4/torture/rpc/spoolss.c
@@ -2578,18 +2578,18 @@ static bool test_Forms(struct torture_context *tctx,
struct dcerpc_binding_handle *winreg_handle,
struct policy_handle *hive_handle)
{
-
- struct spoolss_FormSize size;
- struct spoolss_FormArea area;
+ const struct spoolss_FormSize size = {
+ .width = 50,
+ .height = 25
+ };
+ const struct spoolss_FormArea area = {
+ .left = 5,
+ .top = 10,
+ .right = 45,
+ .bottom = 15
+ };
int i;
- size.width = 50;
- size.height = 25;
- area.left = 5;
- area.top = 10;
- area.right = 45;
- area.bottom = 15;
-
struct {
struct spoolss_AddFormInfo1 info1;
WERROR expected_add_result;