r11624: Use enum names instead of magic numbers.
authorTim Potter <tpot@samba.org>
Thu, 10 Nov 2005 03:01:21 +0000 (03:01 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:46:00 +0000 (13:46 -0500)
(This used to be commit f177c223e6b881a65ed49ceacf9106e42d2a7d0a)

source4/torture/rpc/samr.c

index 3344699c2b6f0242b17ac4b31d51c744ba22e0ea..f94c19917e93efe35c798e0d10b577b6eeb1eef0 100644 (file)
@@ -650,8 +650,8 @@ static BOOL test_SetAliasInfo(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
                r.in.level = levels[i];
                r.in.info  = talloc(mem_ctx, union samr_AliasInfo);
                switch (r.in.level) {
-                   case : init_lsa_String(&r.in.info->name,TEST_ALIASNAME); break;
-                   case : init_lsa_String(&r.in.info->description,
+                   case ALIASINFONAME: init_lsa_String(&r.in.info->name,TEST_ALIASNAME); break;
+                   case ALIASINFODESCRIPTION: init_lsa_String(&r.in.info->description,
                                "Test Description, should test I18N as well"); break;
                }