mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
Some reformatting in tcpip_params_fetch_values().
Michael
(This used to be commit 5b3813b233
)
This commit is contained in:
parent
c5a5b404b4
commit
b4e3c75272
@ -33,24 +33,26 @@ extern REGISTRY_OPS regdb_ops;
|
|||||||
|
|
||||||
static int tcpip_params_fetch_values(const char *key, REGVAL_CTR *regvals)
|
static int tcpip_params_fetch_values(const char *key, REGVAL_CTR *regvals)
|
||||||
{
|
{
|
||||||
fstring value;
|
fstring value;
|
||||||
int value_length;
|
int value_length;
|
||||||
char *hname;
|
char *hname;
|
||||||
char *mydomainname = NULL;
|
char *mydomainname = NULL;
|
||||||
|
|
||||||
hname = myhostname();
|
hname = myhostname();
|
||||||
value_length = push_ucs2( value, value, hname, sizeof(value), STR_TERMINATE|STR_NOALIGN);
|
value_length = push_ucs2(value, value, hname, sizeof(value),
|
||||||
regval_ctr_addvalue( regvals, "Hostname",REG_SZ, value, value_length );
|
STR_TERMINATE|STR_NOALIGN);
|
||||||
|
regval_ctr_addvalue(regvals, "Hostname",REG_SZ, value, value_length);
|
||||||
|
|
||||||
mydomainname = get_mydnsdomname(talloc_tos());
|
mydomainname = get_mydnsdomname(talloc_tos());
|
||||||
if (!mydomainname) {
|
if (!mydomainname) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
value_length = push_ucs2( value, value, mydomainname, sizeof(value), STR_TERMINATE|STR_NOALIGN);
|
value_length = push_ucs2(value, value, mydomainname, sizeof(value),
|
||||||
regval_ctr_addvalue( regvals, "Domain", REG_SZ, value, value_length );
|
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,
|
static int tcpip_params_fetch_subkeys(const char *key,
|
||||||
|
Loading…
Reference in New Issue
Block a user