From ab13654dc9ac23872e4d1384e1c54e336f113009 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Sun, 17 Mar 2002 04:36:35 +0000 Subject: Renamed get_nt_error_msg() to nt_errstr(). (This used to be commit 1f007d3ed41c1b71a89fa6be7d173e67e927c302) --- source3/rpcclient/rpcclient.c | 6 +++--- source3/rpcclient/samsync.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/rpcclient') diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c index 38242648aa..3c8ede6966 100644 --- a/source3/rpcclient/rpcclient.c +++ b/source3/rpcclient/rpcclient.c @@ -234,7 +234,7 @@ void fetch_machine_sid(struct cli_state *cli) fprintf(stderr, "could not obtain sid for domain %s\n", cli->domain); if (!NT_STATUS_IS_OK(result)) { - fprintf(stderr, "error: %s\n", get_nt_error_msg(result)); + fprintf(stderr, "error: %s\n", nt_errstr(result)); } exit(1); @@ -521,7 +521,7 @@ static NTSTATUS process_cmd(struct cli_state *cli, char *cmd) } if (!NT_STATUS_IS_OK(result)) { - printf("result was %s\n", get_nt_error_msg(result)); + printf("result was %s\n", nt_errstr(result)); } return result; @@ -711,7 +711,7 @@ static void usage(void) password, strlen(password)); if (!NT_STATUS_IS_OK(nt_status)) { - DEBUG(1,("Cannot connect to server. Error was %s\n", get_nt_error_msg(nt_status))); + DEBUG(1,("Cannot connect to server. Error was %s\n", nt_errstr(nt_status))); return 1; } diff --git a/source3/rpcclient/samsync.c b/source3/rpcclient/samsync.c index d09ae775ec..14f7ed8953 100644 --- a/source3/rpcclient/samsync.c +++ b/source3/rpcclient/samsync.c @@ -611,7 +611,7 @@ static struct cli_state *init_connection(struct cli_state *cli, result = sam_repl(&cli, trust_passwd, low_serial); if (!NT_STATUS_IS_OK(result)) { - DEBUG(0, ("%s\n", get_nt_error_msg(result))); + DEBUG(0, ("%s\n", nt_errstr(result))); return 1; } -- cgit