summaryrefslogtreecommitdiffstats
path: root/source/libsmb
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-03-17 04:36:35 +0000
committerTim Potter <tpot@samba.org>2002-03-17 04:36:35 +0000
commit1f007d3ed41c1b71a89fa6be7d173e67e927c302 (patch)
tree9cd2ab121ad45ab2029fb9ca8e83ce9407ce6300 /source/libsmb
parent7ba235c0fb4755092605743d575357602fd1ce05 (diff)
downloadsamba-1f007d3ed41c1b71a89fa6be7d173e67e927c302.tar.gz
samba-1f007d3ed41c1b71a89fa6be7d173e67e927c302.tar.xz
samba-1f007d3ed41c1b71a89fa6be7d173e67e927c302.zip
Renamed get_nt_error_msg() to nt_errstr().
Diffstat (limited to 'source/libsmb')
-rw-r--r--source/libsmb/cli_lsarpc.c4
-rw-r--r--source/libsmb/cli_netlogon.c4
-rw-r--r--source/libsmb/cli_wkssvc.c2
-rw-r--r--source/libsmb/clierror.c2
-rw-r--r--source/libsmb/libsmbclient.c2
-rw-r--r--source/libsmb/nterr.c2
-rw-r--r--source/libsmb/trust_passwd.c4
7 files changed, 10 insertions, 10 deletions
diff --git a/source/libsmb/cli_lsarpc.c b/source/libsmb/cli_lsarpc.c
index 249225d8943..90b1cc8d69b 100644
--- a/source/libsmb/cli_lsarpc.c
+++ b/source/libsmb/cli_lsarpc.c
@@ -1131,14 +1131,14 @@ Error was : %s.\n", remote_machine, cli_errstr(&cli) ));
result = cli_lsa_open_policy(&cli, cli.mem_ctx, True, SEC_RIGHTS_QUERY_VALUE, &lsa_pol);
if (!NT_STATUS_IS_OK(result)) {
DEBUG(0, ("fetch_domain_sid: Error opening lsa policy handle. %s\n",
- get_nt_error_msg(result) ));
+ nt_errstr(result) ));
goto done;
}
result = cli_lsa_query_info_policy(&cli, cli.mem_ctx, &lsa_pol, 5, domain, psid);
if (!NT_STATUS_IS_OK(result)) {
DEBUG(0, ("fetch_domain_sid: Error querying lsa policy handle. %s\n",
- get_nt_error_msg(result) ));
+ nt_errstr(result) ));
goto done;
}
diff --git a/source/libsmb/cli_netlogon.c b/source/libsmb/cli_netlogon.c
index 590f5f525eb..125590b6d3f 100644
--- a/source/libsmb/cli_netlogon.c
+++ b/source/libsmb/cli_netlogon.c
@@ -207,7 +207,7 @@ NTSTATUS new_cli_nt_setup_creds(struct cli_state *cli,
&srv_chal);
if (!NT_STATUS_IS_OK(result)) {
DEBUG(0,("cli_nt_setup_creds: auth2 challenge failed %s\n",
- get_nt_error_msg(result)));
+ nt_errstr(result)));
}
return result;
@@ -648,7 +648,7 @@ NTSTATUS cli_net_srv_pwset(struct cli_state *cli, TALLOC_CTX *mem_ctx,
if (!NT_STATUS_IS_OK(r_s.status))
{
/* report error code */
- DEBUG(0,("cli_net_srv_pwset: %s\n", get_nt_error_msg(nt_status)));
+ DEBUG(0,("cli_net_srv_pwset: %s\n", nt_errstr(nt_status)));
goto done;
}
diff --git a/source/libsmb/cli_wkssvc.c b/source/libsmb/cli_wkssvc.c
index 391aee1782e..2a84e6b6980 100644
--- a/source/libsmb/cli_wkssvc.c
+++ b/source/libsmb/cli_wkssvc.c
@@ -99,7 +99,7 @@ NTSTATUS cli_wks_query_info(struct cli_state *cli, TALLOC_CTX *mem_ctx,
/* check returnet status code */
if (NT_STATUS_IS_ERR(r_o.status)) {
/* report the error */
- DEBUG(0,("WKS_R_QUERY_INFO: %s\n", get_nt_error_msg(r_o.status)));
+ DEBUG(0,("WKS_R_QUERY_INFO: %s\n", nt_errstr(r_o.status)));
prs_mem_free(&rbuf);
return r_o.status;
}
diff --git a/source/libsmb/clierror.c b/source/libsmb/clierror.c
index 13ea6b1997b..591c04db22d 100644
--- a/source/libsmb/clierror.c
+++ b/source/libsmb/clierror.c
@@ -103,7 +103,7 @@ char *cli_errstr(struct cli_state *cli)
if (flgs2 & FLAGS2_32_BIT_ERROR_CODES) {
NTSTATUS status = NT_STATUS(IVAL(cli->inbuf,smb_rcls));
- return get_nt_error_msg(status);
+ return nt_errstr(status);
}
cli_dos_error(cli, &errclass, &errnum);
diff --git a/source/libsmb/libsmbclient.c b/source/libsmb/libsmbclient.c
index eb2b7ae25be..237701b9685 100644
--- a/source/libsmb/libsmbclient.c
+++ b/source/libsmb/libsmbclient.c
@@ -216,7 +216,7 @@ int smbc_errno(struct cli_state *c)
ret = cli_errno_from_nt(status);
DEBUG(3,("smbc errno %s -> %d\n",
- get_nt_error_msg(status), ret));
+ nt_errstr(status), ret));
}
return ret;
diff --git a/source/libsmb/nterr.c b/source/libsmb/nterr.c
index 4d13caba917..b74dde9b14f 100644
--- a/source/libsmb/nterr.c
+++ b/source/libsmb/nterr.c
@@ -540,7 +540,7 @@ nt_err_code_struct nt_errs[] =
/*****************************************************************************
returns an NT error message. not amazingly helpful, but better than a number.
*****************************************************************************/
-char *get_nt_error_msg(NTSTATUS nt_code)
+char *nt_errstr(NTSTATUS nt_code)
{
static pstring msg;
int idx = 0;
diff --git a/source/libsmb/trust_passwd.c b/source/libsmb/trust_passwd.c
index 1f52ab3611b..51ffa1dd95a 100644
--- a/source/libsmb/trust_passwd.c
+++ b/source/libsmb/trust_passwd.c
@@ -40,7 +40,7 @@ static NTSTATUS just_change_the_password(struct cli_state *cli, TALLOC_CTX *mem_
if (!NT_STATUS_IS_OK(result)) {
DEBUG(0,("just_change_the_password: unable to setup creds (%s)!\n",
- get_nt_error_msg(result)));
+ nt_errstr(result)));
return result;
}
@@ -48,7 +48,7 @@ static NTSTATUS just_change_the_password(struct cli_state *cli, TALLOC_CTX *mem_
if (!NT_STATUS_IS_OK(result)) {
DEBUG(0,("just_change_the_password: unable to change password (%s)!\n",
- get_nt_error_msg(result)));
+ nt_errstr(result)));
}
return result;
}