summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-12-04 13:29:08 +0100
committerGünther Deschner <gd@samba.org>2009-12-07 14:41:15 +0100
commit5d46530053fa7728d1d4903a3d92f238202ab0d8 (patch)
tree1998e216c15f5e5aeefab52c5e1b47b7473e91aa
parent71018ebe5303ca6e0f3e3e4b96ae45fb32d3e195 (diff)
downloadsamba-5d46530053fa7728d1d4903a3d92f238202ab0d8.tar.gz
samba-5d46530053fa7728d1d4903a3d92f238202ab0d8.tar.bz2
samba-5d46530053fa7728d1d4903a3d92f238202ab0d8.zip
s3-winreg: remove trailing whitespace.
Guenther
-rw-r--r--source3/rpc_server/srv_winreg_nt.c80
1 files changed, 40 insertions, 40 deletions
diff --git a/source3/rpc_server/srv_winreg_nt.c b/source3/rpc_server/srv_winreg_nt.c
index cf3043629d..737554efec 100644
--- a/source3/rpc_server/srv_winreg_nt.c
+++ b/source3/rpc_server/srv_winreg_nt.c
@@ -1,19 +1,19 @@
-/*
+/*
* Unix SMB/CIFS implementation.
* RPC Pipe client / server routines
- *
+ *
* Copyright (C) Gerald Carter 2002-2006.
*
* 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 3 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* 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, see <http://www.gnu.org/licenses/>.
*/
@@ -44,13 +44,13 @@ static struct registry_key *find_regkey_by_hnd(pipes_struct *p,
}
/*******************************************************************
- Function for open a new registry handle and creating a handle
+ Function for open a new registry handle and creating a handle
Note that P should be valid & hnd should already have space
-
- When we open a key, we store the full path to the key as
+
+ When we open a key, we store the full path to the key as
HK[LM|U]\<key>\<key>\...
*******************************************************************/
-
+
static WERROR open_registry_key( pipes_struct *p, struct policy_handle *hnd,
struct registry_key *parent,
const char *subkeyname,
@@ -71,31 +71,31 @@ static WERROR open_registry_key( pipes_struct *p, struct policy_handle *hnd,
if ( !W_ERROR_IS_OK(result) ) {
return result;
}
-
+
if ( !create_policy_hnd( p, hnd, key ) ) {
- return WERR_BADFILE;
+ return WERR_BADFILE;
}
-
+
return WERR_OK;
}
/*******************************************************************
- Function for open a new registry handle and creating a handle
+ Function for open a new registry handle and creating a handle
Note that P should be valid & hnd should already have space
*******************************************************************/
static bool close_registry_key(pipes_struct *p, struct policy_handle *hnd)
{
struct registry_key *regkey = find_regkey_by_hnd(p, hnd);
-
+
if ( !regkey ) {
DEBUG(2,("close_registry_key: Invalid handle (%s:%u:%u)\n",
OUR_HANDLE(hnd)));
return False;
}
-
+
close_policy_hnd(p, hnd);
-
+
return True;
}
@@ -108,7 +108,7 @@ WERROR _winreg_CloseKey(pipes_struct *p, struct winreg_CloseKey *r)
/* close the policy handle */
if (!close_registry_key(p, r->in.handle))
- return WERR_BADFID;
+ return WERR_BADFID;
ZERO_STRUCTP(r->out.handle);
@@ -226,12 +226,12 @@ WERROR _winreg_QueryValue(pipes_struct *p, struct winreg_QueryValue *r)
}
*r->out.data_length = *r->out.type = REG_NONE;
-
+
DEBUG(7,("_reg_info: policy key name = [%s]\n", regkey->key->name));
DEBUG(7,("_reg_info: policy key type = [%08x]\n", regkey->key->type));
-
+
/* Handle QueryValue calls on HKEY_PERFORMANCE_DATA */
- if(regkey->key->type == REG_KEY_HKPD)
+ if(regkey->key->type == REG_KEY_HKPD)
{
if (strequal(r->in.value_name->name, "Global")) {
if (!prs_init(&prs_hkpd, *r->in.data_size, p->mem_ctx, MARSHALL))
@@ -324,7 +324,7 @@ WERROR _winreg_QueryInfoKey(pipes_struct *p, struct winreg_QueryInfoKey *r)
{
WERROR status = WERR_OK;
struct registry_key *regkey = find_regkey_by_hnd( p, r->in.handle );
-
+
if ( !regkey )
return WERR_BADFID;
@@ -347,7 +347,7 @@ WERROR _winreg_QueryInfoKey(pipes_struct *p, struct winreg_QueryInfoKey *r)
*r->out.max_valnamelen += 1;
*r->out.max_valnamelen *= 2;
-
+
return WERR_OK;
}
@@ -355,14 +355,14 @@ WERROR _winreg_QueryInfoKey(pipes_struct *p, struct winreg_QueryInfoKey *r)
/*****************************************************************************
Implementation of REG_GETVERSION
****************************************************************************/
-
+
WERROR _winreg_GetVersion(pipes_struct *p, struct winreg_GetVersion *r)
{
struct registry_key *regkey = find_regkey_by_hnd( p, r->in.handle );
-
+
if ( !regkey )
return WERR_BADFID;
-
+
return reg_getversion(r->out.version);
}
@@ -370,14 +370,14 @@ WERROR _winreg_GetVersion(pipes_struct *p, struct winreg_GetVersion *r)
/*****************************************************************************
Implementation of REG_ENUM_KEY
****************************************************************************/
-
+
WERROR _winreg_EnumKey(pipes_struct *p, struct winreg_EnumKey *r)
{
WERROR err;
struct registry_key *key = find_regkey_by_hnd( p, r->in.handle );
-
+
if ( !key )
- return WERR_BADFID;
+ return WERR_BADFID;
if ( !r->in.name || !r->in.keyclass )
return WERR_INVALID_PARAM;
@@ -404,7 +404,7 @@ WERROR _winreg_EnumValue(pipes_struct *p, struct winreg_EnumValue *r)
char *valname;
struct registry_value *val;
DATA_BLOB value_blob;
-
+
if ( !key )
return WERR_BADFID;
@@ -469,9 +469,9 @@ WERROR _winreg_InitiateSystemShutdown(pipes_struct *p, struct winreg_InitiateSys
s.in.do_reboot = r->in.do_reboot;
s.in.reason = 0;
- /* thunk down to _winreg_InitiateSystemShutdownEx()
+ /* thunk down to _winreg_InitiateSystemShutdownEx()
(just returns a status) */
-
+
return _winreg_InitiateSystemShutdownEx( p, &s );
}
@@ -766,10 +766,10 @@ WERROR _winreg_SetValue(pipes_struct *p, struct winreg_SetValue *r)
if ( !key )
return WERR_BADFID;
- DEBUG(8,("_reg_set_value: Setting value for [%s:%s]\n",
+ DEBUG(8,("_reg_set_value: Setting value for [%s:%s]\n",
key->key->name, r->in.name.name));
- status = registry_pull_value(p->mem_ctx, &val, r->in.type, r->in.data,
+ status = registry_pull_value(p->mem_ctx, &val, r->in.type, r->in.data,
r->in.size, r->in.size);
if (!W_ERROR_IS_OK(status)) {
return status;
@@ -798,7 +798,7 @@ WERROR _winreg_DeleteKey(pipes_struct *p, struct winreg_DeleteKey *r)
WERROR _winreg_DeleteValue(pipes_struct *p, struct winreg_DeleteValue *r)
{
struct registry_key *key = find_regkey_by_hnd(p, r->in.handle);
-
+
if ( !key )
return WERR_BADFID;
@@ -818,9 +818,9 @@ WERROR _winreg_GetKeySecurity(pipes_struct *p, struct winreg_GetKeySecurity *r)
if ( !key )
return WERR_BADFID;
-
+
/* access checks first */
-
+
if ( !(key->key->access_granted & STD_RIGHT_READ_CONTROL_ACCESS) )
return WERR_ACCESS_DENIED;
@@ -843,7 +843,7 @@ WERROR _winreg_GetKeySecurity(pipes_struct *p, struct winreg_GetKeySecurity *r)
r->out.sd->size = len;
r->out.sd->len = len;
r->out.sd->data = data;
-
+
return WERR_OK;
}
@@ -858,9 +858,9 @@ WERROR _winreg_SetKeySecurity(pipes_struct *p, struct winreg_SetKeySecurity *r)
if ( !key )
return WERR_BADFID;
-
+
/* access checks first */
-
+
if ( !(key->key->access_granted & STD_RIGHT_WRITE_DAC_ACCESS) )
return WERR_ACCESS_DENIED;
@@ -878,9 +878,9 @@ WERROR _winreg_SetKeySecurity(pipes_struct *p, struct winreg_SetKeySecurity *r)
WERROR _winreg_FlushKey(pipes_struct *p, struct winreg_FlushKey *r)
{
- /* I'm just replying OK because there's not a lot
+ /* I'm just replying OK because there's not a lot
here I see to do i --jerry */
-
+
return WERR_OK;
}