summaryrefslogtreecommitdiff
path: root/source3/libsmb/nterr.c
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/nterr.c
parent8a3bff343a21bc8b4c229bae5830db7462fea25f (diff)
downloadsamba-44b728958ae9a48bb56591532e5db9867311c1b9.tar.gz
samba-44b728958ae9a48bb56591532e5db9867311c1b9.tar.bz2
samba-44b728958ae9a48bb56591532e5db9867311c1b9.zip
Use common error definitions.
Diffstat (limited to 'source3/libsmb/nterr.c')
-rw-r--r--source3/libsmb/nterr.c4
1 files changed, 2 insertions, 2 deletions
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;