diff options
author | Günther Deschner <gd@samba.org> | 2010-09-10 09:56:02 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-09-15 08:32:58 +0200 |
commit | a609c03956843b11d335b7f3b0f8d5a330588711 (patch) | |
tree | 25b76d92edd644dbafcaf0e3611cbc5723e3d2fe /source3/lib | |
parent | 2d23ddb68d20a7e10297841ff7a550c03a8c6b74 (diff) | |
download | samba-a609c03956843b11d335b7f3b0f8d5a330588711.tar.gz samba-a609c03956843b11d335b7f3b0f8d5a330588711.tar.bz2 samba-a609c03956843b11d335b7f3b0f8d5a330588711.zip |
s3-nltest: rename print_result to print_netlogon_info_result.
Guenther
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/netapi/examples/netlogon/nltest.c | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/source3/lib/netapi/examples/netlogon/nltest.c b/source3/lib/netapi/examples/netlogon/nltest.c index 9dc70daa61..9123cda16e 100644 --- a/source3/lib/netapi/examples/netlogon/nltest.c +++ b/source3/lib/netapi/examples/netlogon/nltest.c @@ -40,8 +40,8 @@ enum { /**************************************************************** ****************************************************************/ -static void print_result(uint32_t level, - uint8_t *buffer) +static void print_netlogon_info_result(uint32_t level, + uint8_t *buffer) { struct NETLOGON_INFO_1 *i1 = NULL; struct NETLOGON_INFO_2 *i2 = NULL; @@ -173,6 +173,9 @@ int main(int argc, const char **argv) libnetapi_get_error_string(ctx, status)); goto done; } + + print_netlogon_info_result(query_level, buffer); + break; case OPT_SC_QUERY: query_level = 2; @@ -187,6 +190,9 @@ int main(int argc, const char **argv) libnetapi_get_error_string(ctx, status)); goto done; } + + print_netlogon_info_result(query_level, buffer); + break; case OPT_SC_VERIFY: query_level = 2; @@ -201,6 +207,9 @@ int main(int argc, const char **argv) libnetapi_get_error_string(ctx, status)); goto done; } + + print_netlogon_info_result(query_level, buffer); + break; case OPT_SC_RESET: query_level = 2; @@ -215,6 +224,9 @@ int main(int argc, const char **argv) libnetapi_get_error_string(ctx, status)); goto done; } + + print_netlogon_info_result(query_level, buffer); + break; case OPT_SC_CHANGE_PWD: query_level = 1; @@ -229,6 +241,9 @@ int main(int argc, const char **argv) libnetapi_get_error_string(ctx, status)); goto done; } + + print_netlogon_info_result(query_level, buffer); + break; default: poptPrintHelp(pc, stderr, 0); @@ -236,8 +251,6 @@ int main(int argc, const char **argv) } } - print_result(query_level, buffer); - printf("The command completed successfully\n"); status = 0; |