summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-01-20 01:21:45 +0100
committerMichael Adam <obnox@samba.org>2008-01-20 02:03:40 +0100
commitb4e3c752722f6e7d143caa810ce0f8eb9c8d12c9 (patch)
tree86ce666012a3782c5b70fea2b95bdd6e6344170e
parentc5a5b404b43817525590aa924f1762824f49d156 (diff)
downloadsamba-b4e3c752722f6e7d143caa810ce0f8eb9c8d12c9.tar.gz
samba-b4e3c752722f6e7d143caa810ce0f8eb9c8d12c9.tar.bz2
samba-b4e3c752722f6e7d143caa810ce0f8eb9c8d12c9.zip
Some reformatting in tcpip_params_fetch_values().
Michael (This used to be commit 5b3813b233dc2a60e6d5a9942b4044219d800415)
-rw-r--r--source3/registry/reg_backend_tcpip_params.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/source3/registry/reg_backend_tcpip_params.c b/source3/registry/reg_backend_tcpip_params.c
index 1714bdb439..db7df5dd8f 100644
--- a/source3/registry/reg_backend_tcpip_params.c
+++ b/source3/registry/reg_backend_tcpip_params.c
@@ -33,24 +33,26 @@ extern REGISTRY_OPS regdb_ops;
static int tcpip_params_fetch_values(const char *key, REGVAL_CTR *regvals)
{
- fstring value;
- int value_length;
- char *hname;
+ fstring value;
+ int value_length;
+ char *hname;
char *mydomainname = NULL;
hname = myhostname();
- value_length = push_ucs2( value, value, hname, sizeof(value), STR_TERMINATE|STR_NOALIGN);
- regval_ctr_addvalue( regvals, "Hostname",REG_SZ, value, value_length );
+ value_length = push_ucs2(value, value, hname, sizeof(value),
+ STR_TERMINATE|STR_NOALIGN);
+ regval_ctr_addvalue(regvals, "Hostname",REG_SZ, value, value_length);
mydomainname = get_mydnsdomname(talloc_tos());
if (!mydomainname) {
return -1;
}
- value_length = push_ucs2( value, value, mydomainname, sizeof(value), STR_TERMINATE|STR_NOALIGN);
- regval_ctr_addvalue( regvals, "Domain", REG_SZ, value, value_length );
+ value_length = push_ucs2(value, value, mydomainname, sizeof(value),
+ STR_TERMINATE|STR_NOALIGN);
+ regval_ctr_addvalue(regvals, "Domain", REG_SZ, value, value_length);
- return regval_ctr_numvals( regvals );
+ return regval_ctr_numvals(regvals);
}
static int tcpip_params_fetch_subkeys(const char *key,