mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
Two more fixes from Jim Brown <jim.brown@miami.edu> for SGI compiler warnings.
Jeremy.
(This used to be commit d85cbdbe29
)
This commit is contained in:
parent
4a8b39974b
commit
4a09c5a09f
@ -97,7 +97,12 @@ static ssize_t client_receive_smb(struct cli_state *cli, size_t maxlen)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (len < 0) {
|
/*
|
||||||
|
* I don't believe len can be < 0 with NT_STATUS_OK
|
||||||
|
* returned above, but this check doesn't hurt. JRA.
|
||||||
|
*/
|
||||||
|
|
||||||
|
if ((ssize_t)len < 0) {
|
||||||
return len;
|
return len;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -184,7 +184,7 @@ static bool irix_set_kernel_oplock(files_struct *fsp, int oplock_type)
|
|||||||
strerror(errno) ));
|
strerror(errno) ));
|
||||||
} else {
|
} else {
|
||||||
DEBUG(5,("irix_set_kernel_oplock: Refused oplock on "
|
DEBUG(5,("irix_set_kernel_oplock: Refused oplock on "
|
||||||
"file %s, fd = %d, file_id = 5s, "
|
"file %s, fd = %d, file_id = %s, "
|
||||||
"gen_id = %ul. Another process had the file "
|
"gen_id = %ul. Another process had the file "
|
||||||
"open.\n",
|
"open.\n",
|
||||||
fsp->fsp_name, fsp->fh->fd,
|
fsp->fsp_name, fsp->fh->fd,
|
||||||
|
Loading…
Reference in New Issue
Block a user