summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-10-23 15:35:21 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-10-23 15:35:21 +0200
commit44b728958ae9a48bb56591532e5db9867311c1b9 (patch)
tree291e18735b29c09e106c6916e92c26125654d68f /source3/libsmb
parent8a3bff343a21bc8b4c229bae5830db7462fea25f (diff)
downloadsamba-44b728958ae9a48bb56591532e5db9867311c1b9.tar.gz
samba-44b728958ae9a48bb56591532e5db9867311c1b9.tar.bz2
samba-44b728958ae9a48bb56591532e5db9867311c1b9.zip
Use common error definitions.
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/doserr.c2
-rw-r--r--source3/libsmb/nterr.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/source3/libsmb/doserr.c b/source3/libsmb/doserr.c
index 2716e04d91..d14733a534 100644
--- a/source3/libsmb/doserr.c
+++ b/source3/libsmb/doserr.c
@@ -81,7 +81,7 @@ werror_code_struct dos_errs[] =
{ "WERR_DFS_NO_SUCH_SERVER", WERR_DFS_NO_SUCH_SERVER },
{ "WERR_DFS_INTERNAL_ERROR", WERR_DFS_INTERNAL_ERROR },
{ "WERR_DFS_CANT_CREATE_JUNCT", WERR_DFS_CANT_CREATE_JUNCT },
- { "WERR_INVALID_COMPUTER_NAME", WERR_INVALID_COMPUTER_NAME },
+ { "WERR_INVALID_COMPUTERNAME", WERR_INVALID_COMPUTERNAME },
{ "WERR_INVALID_DOMAINNAME", WERR_INVALID_DOMAINNAME },
{ "WERR_MACHINE_LOCKED", WERR_MACHINE_LOCKED },
{ "WERR_DC_NOT_FOUND", WERR_DC_NOT_FOUND },
diff --git a/source3/libsmb/nterr.c b/source3/libsmb/nterr.c
index fc6340342f..1ba230cefe 100644
--- a/source3/libsmb/nterr.c
+++ b/source3/libsmb/nterr.c
@@ -653,7 +653,7 @@ const char *nt_errstr(NTSTATUS nt_code)
char *result;
#ifdef HAVE_LDAP
- if (NT_STATUS_TYPE(nt_code) == NT_STATUS_TYPE_LDAP) {
+ if (NT_STATUS_IS_LDAP(nt_code)) {
return ldap_err2string(NT_STATUS_LDAP_CODE(nt_code));
}
#endif
@@ -718,7 +718,7 @@ const char *get_nt_error_c_code(NTSTATUS nt_code)
Returns the NT_STATUS constant matching the string supplied (as an NTSTATUS)
*****************************************************************************/
-NTSTATUS nt_status_string_to_code(char *nt_status_str)
+NTSTATUS nt_status_string_to_code(const char *nt_status_str)
{
int idx = 0;