diff options
author | Günther Deschner <gd@samba.org> | 2011-03-03 01:16:22 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2011-03-04 01:18:41 +0100 |
commit | cb8c0e177687769638ee3aef59a86c4c4a80b971 (patch) | |
tree | 010ca2ba46ce8b9dfd26b64633f60a938a687d7a /source4/libcli/util | |
parent | 2f46942e08d1465bdbdbb88bf3ba3018dde25d61 (diff) | |
download | samba-cb8c0e177687769638ee3aef59a86c4c4a80b971.tar.gz samba-cb8c0e177687769638ee3aef59a86c4c4a80b971.tar.bz2 samba-cb8c0e177687769638ee3aef59a86c4c4a80b971.zip |
nterr: remove space indents (use tabs instead), following coding standards.
Guenther
Diffstat (limited to 'source4/libcli/util')
-rw-r--r-- | source4/libcli/util/nterr.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/source4/libcli/util/nterr.c b/source4/libcli/util/nterr.c index 45e3bf9eac..0a5d2a3e90 100644 --- a/source4/libcli/util/nterr.c +++ b/source4/libcli/util/nterr.c @@ -543,7 +543,7 @@ static const nt_err_code_struct nt_errs[] = { "NT_STATUS_QUOTA_LIST_INCONSISTENT", NT_STATUS_QUOTA_LIST_INCONSISTENT }, { "NT_STATUS_FILE_IS_OFFLINE", NT_STATUS_FILE_IS_OFFLINE }, { "NT_STATUS_DS_NO_MORE_RIDS", NT_STATUS_DS_NO_MORE_RIDS }, - { "NT_STATUS_NO_MORE_ENTRIES", NT_STATUS_NO_MORE_ENTRIES }, + { "NT_STATUS_NO_MORE_ENTRIES", NT_STATUS_NO_MORE_ENTRIES }, { "NT_STATUS_RPC_PROTSEQ_NOT_SUPPORTED", NT_STATUS_RPC_PROTSEQ_NOT_SUPPORTED }, { "NT_STATUS_RPC_UNSUPPORTED_NAME_SYNTAX", NT_STATUS_RPC_UNSUPPORTED_NAME_SYNTAX }, { "NT_STATUS_RPC_UNKNOWN_IF", NT_STATUS_RPC_UNKNOWN_IF }, @@ -839,13 +839,13 @@ static const nt_err_code_struct nt_err_desc[] = *****************************************************************************/ const char *nt_errstr(NTSTATUS nt_code) { - static char msg[40]; - int idx = 0; + static char msg[40]; + int idx = 0; while (nt_errs[idx].nt_errstr != NULL) { if (NT_STATUS_V(nt_errs[idx].nt_errcode) == - NT_STATUS_V(nt_code)) { - return nt_errs[idx].nt_errstr; + NT_STATUS_V(nt_code)) { + return nt_errs[idx].nt_errstr; } idx++; } @@ -857,7 +857,7 @@ const char *nt_errstr(NTSTATUS nt_code) slprintf(msg, sizeof(msg), "NT code 0x%08x", NT_STATUS_V(nt_code)); - return msg; + return msg; } /************************************************************************ @@ -865,11 +865,11 @@ const char *nt_errstr(NTSTATUS nt_code) ***********************************************************************/ const char *get_friendly_nt_error_msg(NTSTATUS nt_code) { - int idx = 0; + int idx = 0; while (nt_err_desc[idx].nt_errstr != NULL) { if (NT_STATUS_V(nt_err_desc[idx].nt_errcode) == NT_STATUS_V(nt_code)) { - return nt_err_desc[idx].nt_errstr; + return nt_err_desc[idx].nt_errstr; } idx++; } @@ -883,20 +883,20 @@ const char *get_friendly_nt_error_msg(NTSTATUS nt_code) *****************************************************************************/ const char *get_nt_error_c_code(NTSTATUS nt_code) { - static char out[40]; - int idx = 0; + static char out[40]; + int idx = 0; while (nt_errs[idx].nt_errstr != NULL) { if (NT_STATUS_V(nt_errs[idx].nt_errcode) == - NT_STATUS_V(nt_code)) { - return nt_errs[idx].nt_errstr; + NT_STATUS_V(nt_code)) { + return nt_errs[idx].nt_errstr; } idx++; } slprintf(out, sizeof(out), "NT_STATUS(0x%08x)", NT_STATUS_V(nt_code)); - return out; + return out; } /***************************************************************************** @@ -904,11 +904,11 @@ const char *get_nt_error_c_code(NTSTATUS nt_code) *****************************************************************************/ NTSTATUS nt_status_string_to_code(const char *nt_status_str) { - int idx = 0; + int idx = 0; while (nt_errs[idx].nt_errstr != NULL) { if (strcasecmp(nt_errs[idx].nt_errstr, nt_status_str) == 0) { - return nt_errs[idx].nt_errcode; + return nt_errs[idx].nt_errcode; } idx++; } |