s4:tortore/rpc/spoolss.c: fix declaration after code warning
authorStefan Metzmacher <metze@samba.org>
Mon, 12 Apr 2010 11:44:19 +0000 (13:44 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 12 Apr 2010 14:18:11 +0000 (16:18 +0200)
metze

source4/torture/rpc/spoolss.c

index 19647f3acded1cb299cbdecb6a16267d0a867b66..c9762196e457f98160f24829b2f05c39aad45a8f 100644 (file)
@@ -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;