From a609c03956843b11d335b7f3b0f8d5a330588711 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 10 Sep 2010 09:56:02 +0200 Subject: s3-nltest: rename print_result to print_netlogon_info_result. Guenther --- source3/lib/netapi/examples/netlogon/nltest.c | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) (limited to 'source3/lib/netapi/examples') 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; -- cgit