diff options
author | Michael Adam <obnox@samba.org> | 2008-04-09 12:29:34 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-04-09 23:52:34 +0200 |
commit | d3dcaac176212a20c2bb71a08b4ac39ea2689047 (patch) | |
tree | 42bcabd51b2696fab56e5fb28970b7914a0c6718 /source3/utils/net_registry_util.c | |
parent | a8124367b4fcfea165569e4ce1e3401deacb0142 (diff) | |
download | samba-d3dcaac176212a20c2bb71a08b4ac39ea2689047.tar.gz samba-d3dcaac176212a20c2bb71a08b4ac39ea2689047.tar.bz2 samba-d3dcaac176212a20c2bb71a08b4ac39ea2689047.zip |
net (registry util): refactor printing of value without name out.
This renames print_registry_value() to print_registry_value_with_name().
The new function is called print_registry_value().
Michael
(This used to be commit 88c4851ad7240bc4f72a5ef92e21629e6a4c99c6)
Diffstat (limited to 'source3/utils/net_registry_util.c')
-rw-r--r-- | source3/utils/net_registry_util.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/source3/utils/net_registry_util.c b/source3/utils/net_registry_util.c index 948f8b6153..ca80e60ec3 100644 --- a/source3/utils/net_registry_util.c +++ b/source3/utils/net_registry_util.c @@ -32,10 +32,8 @@ void print_registry_key(const char *keyname, NTTIME *modtime) d_printf("\n"); } -void print_registry_value(const char *valname, - const struct registry_value *valvalue) +void print_registry_value(const struct registry_value *valvalue) { - d_printf("Valuename = %s\n", valname); d_printf("Type = %s\n", reg_type_lookup(valvalue->type)); switch(valvalue->type) { @@ -62,6 +60,13 @@ void print_registry_value(const char *valname, d_printf("Value = <unprintable>\n"); break; } +} + +void print_registry_value_with_name(const char *valname, + const struct registry_value *valvalue) +{ + d_printf("Valuename = %s\n", valname); + print_registry_value(valvalue); d_printf("\n"); } |