1
0
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:
Jeremy Allison 2008-07-01 15:39:41 -07:00
parent d89f9d404f
commit d85cbdbe29
2 changed files with 7 additions and 2 deletions

View File

@ -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;
}

View File

@ -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,