Some reformatting in tcpip_params_fetch_values().
authorMichael Adam <obnox@samba.org>
Sun, 20 Jan 2008 00:21:45 +0000 (01:21 +0100)
committerMichael Adam <obnox@samba.org>
Sun, 20 Jan 2008 01:03:40 +0000 (02:03 +0100)
Michael
(This used to be commit 5b3813b233dc2a60e6d5a9942b4044219d800415)

source3/registry/reg_backend_tcpip_params.c

index 1714bdb43964f9d0f7786fb5e451433c7cee405b..db7df5dd8ffecb1cdf8ad79c5a6a48d7bf89bd16 100644 (file)
@@ -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,