svcctl: Fix svcctl_ControlsAccepted bitmask.
authorGünther Deschner <gd@samba.org>
Mon, 6 Apr 2009 23:11:44 +0000 (01:11 +0200)
committerGünther Deschner <gd@samba.org>
Mon, 6 Apr 2009 23:16:52 +0000 (01:16 +0200)
Never ever have 0 value in a bitmask...

pidl should generate at least a warning about those things.

Guenther

librpc/idl/svcctl.idl

index 3f990298ad85a708e5eeec7a8f02ee4437089004..4b66d9cc5dccf26646415e5247c647b7e08ca5a8 100644 (file)
@@ -30,8 +30,9 @@ import "misc.idl", "security.idl";
                SVCCTL_PAUSED                   = 0x00000007
        } svcctl_ServiceStatus;
 
+       const int SVCCTL_ACCEPT_NONE                    = 0x00000000;
+
        typedef [bitmap32bit] bitmap {
-               SVCCTL_ACCEPT_NONE                      = 0x00000000,
                SVCCTL_ACCEPT_STOP                      = 0x00000001,
                SVCCTL_ACCEPT_PAUSE_CONTINUE            = 0x00000002,
                SVCCTL_ACCEPT_SHUTDOWN                  = 0x00000004,