X-Git-Url: http://git.samba.org/?a=blobdiff_plain;f=source3%2Frpc_server%2Fsrv_winreg_nt.c;h=ce34211420e2e60f2d2b2c6bb6287b093af99984;hb=30191d1a5704ad2b158386b511558972d539ce47;hp=1fa61c27ca19c01bc4a02c9588616c1defce8006;hpb=255b807802f627451835c1525dd7dfee869833ee;p=tprouty%2Fsamba.git diff --git a/source3/rpc_server/srv_winreg_nt.c b/source3/rpc_server/srv_winreg_nt.c index 1fa61c27ca..ce34211420 100644 --- a/source3/rpc_server/srv_winreg_nt.c +++ b/source3/rpc_server/srv_winreg_nt.c @@ -6,7 +6,7 @@ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or + * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, @@ -15,8 +15,7 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * along with this program; if not, see . */ /* Implementation of registry functions. */ @@ -27,7 +26,7 @@ #undef DBGC_CLASS #define DBGC_CLASS DBGC_RPC_SRV -static struct generic_mapping reg_generic_map = +static const struct generic_mapping reg_generic_map = { REG_KEY_READ, REG_KEY_WRITE, REG_KEY_EXECUTE, REG_KEY_ALL }; /****************************************************************** @@ -98,7 +97,7 @@ static WERROR open_registry_key( pipes_struct *p, POLICY_HND *hnd, Note that P should be valid & hnd should already have space *******************************************************************/ -static BOOL close_registry_key(pipes_struct *p, POLICY_HND *hnd) +static bool close_registry_key(pipes_struct *p, POLICY_HND *hnd) { struct registry_key *regkey = find_regkey_by_hnd(p, hnd); @@ -229,8 +228,8 @@ WERROR _winreg_QueryValue(pipes_struct *p, struct winreg_QueryValue *r) uint32_t outbuf_size; DATA_BLOB val_blob; - BOOL free_buf = False; - BOOL free_prs = False; + bool free_buf = False; + bool free_prs = False; if ( !regkey ) return WERR_BADFID; @@ -503,7 +502,7 @@ WERROR _winreg_InitiateSystemShutdownEx(pipes_struct *p, struct winreg_InitiateS fstring reboot; fstring f; int ret; - BOOL can_shutdown; + bool can_shutdown; pstrcpy(shutdown_script, lp_shutdown_script()); @@ -568,7 +567,7 @@ WERROR _winreg_AbortSystemShutdown(pipes_struct *p, struct winreg_AbortSystemShu { pstring abort_shutdown_script; int ret; - BOOL can_shutdown; + bool can_shutdown; pstrcpy(abort_shutdown_script, lp_abort_shutdown_script());