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 commit is contained in:
parent
d89f9d404f
commit
d85cbdbe29
@ -97,7 +97,12 @@ static ssize_t client_receive_smb(struct cli_state *cli, size_t maxlen)
|
||||
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;
|
||||
}
|
||||
|
||||
|
@ -184,7 +184,7 @@ static bool irix_set_kernel_oplock(files_struct *fsp, int oplock_type)
|
||||
strerror(errno) ));
|
||||
} else {
|
||||
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 "
|
||||
"open.\n",
|
||||
fsp->fsp_name, fsp->fh->fd,
|
||||
|
Loading…
Reference in New Issue
Block a user