Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
NTSTATUS map_nt_error_from_unix(int unix_error)
{
- int i = 0;
+ size_t i = 0;
if (unix_error == 0) {
/* we map this to an error, not success, as this
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",
NT_STATUS_V(status)));
*****************************************************************************/
NTSTATUS dos_to_ntstatus(uint8_t eclass, uint32_t ecode)
{
- int i;
+ size_t i;
if (eclass == 0) return NT_STATUS_OK;
for (i=0; i < ARRAY_SIZE(dos_to_ntstatus_map); i++) {
if (eclass == dos_to_ntstatus_map[i].dos_class &&