1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-02 00:22:11 +03:00

lib: Align integer types

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke
2020-01-19 11:50:57 +01:00
committed by Jeremy Allison
parent cffcc39f18
commit 37eb87d2be
2 changed files with 3 additions and 3 deletions

View File

@ -126,7 +126,7 @@ static const struct {
NTSTATUS map_nt_error_from_unix(int unix_error) NTSTATUS map_nt_error_from_unix(int unix_error)
{ {
int i = 0; size_t i = 0;
if (unix_error == 0) { if (unix_error == 0) {
/* we map this to an error, not success, as this /* we map this to an error, not success, as this
@ -264,7 +264,7 @@ static const struct {
int map_errno_from_nt_status(NTSTATUS status) int map_errno_from_nt_status(NTSTATUS status)
{ {
int i; size_t i;
DEBUG(10,("map_errno_from_nt_status: 32 bit codes: code=%08x\n", DEBUG(10,("map_errno_from_nt_status: 32 bit codes: code=%08x\n",
NT_STATUS_V(status))); NT_STATUS_V(status)));

View File

@ -283,7 +283,7 @@ convert a dos eclas/ecode to a NT status32 code
*****************************************************************************/ *****************************************************************************/
NTSTATUS dos_to_ntstatus(uint8_t eclass, uint32_t ecode) NTSTATUS dos_to_ntstatus(uint8_t eclass, uint32_t ecode)
{ {
int i; size_t i;
if (eclass == 0) return NT_STATUS_OK; if (eclass == 0) return NT_STATUS_OK;
for (i=0; i < ARRAY_SIZE(dos_to_ntstatus_map); i++) { for (i=0; i < ARRAY_SIZE(dos_to_ntstatus_map); i++) {
if (eclass == dos_to_ntstatus_map[i].dos_class && if (eclass == dos_to_ntstatus_map[i].dos_class &&