summaryrefslogtreecommitdiff
path: root/source3/registry
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2007-09-05 16:01:27 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:30:30 -0500
commitb3fbff6eb5177b72135df660bee3bc3476d56018 (patch)
treeb6d9ddc82b436143137980db447048c9a7c46e49 /source3/registry
parent274e35f36e55ff215cef26d44d35627cb9c97924 (diff)
downloadsamba-b3fbff6eb5177b72135df660bee3bc3476d56018.tar.gz
samba-b3fbff6eb5177b72135df660bee3bc3476d56018.tar.bz2
samba-b3fbff6eb5177b72135df660bee3bc3476d56018.zip
r24970: Polish some comments and add my (C).
Michael (This used to be commit aa043bb446ec8ab90a8e61c590be8d33b6a2d42d)
Diffstat (limited to 'source3/registry')
-rw-r--r--source3/registry/reg_smbconf.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/source3/registry/reg_smbconf.c b/source3/registry/reg_smbconf.c
index ccf78d4350..804afdbdff 100644
--- a/source3/registry/reg_smbconf.c
+++ b/source3/registry/reg_smbconf.c
@@ -2,6 +2,7 @@
* Unix SMB/CIFS implementation.
* Virtual Windows Registry Layer
* Copyright (C) Volker Lendecke 2006
+ * Copyright (C) Michael Adam 2007
*
* 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
@@ -119,13 +120,9 @@ static BOOL smbconf_store_values( const char *key, REGVAL_CTR *val )
valstr = (value->v.sz.str);
len = value->v.sz.len;
- DEBUG(10, ("theval->size: %d, value->v.sz.len: %d, "
- "value->v.sz.str: '%s'\n",
- theval->size, (int)value->v.sz.len,
- value->v.sz.str));
if (valstr[len - 1] != '\0') {
DEBUG(10, ("string is not '\\0'-terminated. "
- "adding '\\0'...\n"));
+ "adding '\\0'.\n"));
valstr = TALLOC_REALLOC_ARRAY(mem_ctx, valstr,
char, len + 1);
if (valstr == NULL) {
@@ -140,7 +137,7 @@ static BOOL smbconf_store_values( const char *key, REGVAL_CTR *val )
if (!lp_canonicalize_parameter(valname, &canon_valname,
&inverse))
{
- DEBUG(5, ("oops: lp_canonicalize_parameter "
+ DEBUG(5, ("Error: lp_canonicalize_parameter "
"failed after lp_parameter_is_valid. "
"This should not happen!\n"));
TALLOC_FREE(mem_ctx);
@@ -160,10 +157,6 @@ static BOOL smbconf_store_values( const char *key, REGVAL_CTR *val )
value->v.sz.str = CONST_DISCARD(char *, canon_valstr);
value->v.sz.len = strlen(canon_valstr) + 1;
- DEBUG(10, ("NEW: value->type: %d, value->v.sz.len: %d, "
- "value->v.sz.str: '%s'\n", value->type,
- (int)value->v.sz.len, value->v.sz.str));
-
err = registry_push_value(mem_ctx, value, &value_data);
if (!W_ERROR_IS_OK(err)) {
DEBUG(10, ("error calling registry_push_value."