mirror of
https://github.com/samba-team/samba.git
synced 2025-03-27 22:50:26 +03:00
r23185: Try to fix the IRIX build, also add the forgotten file_id.c in .26
(This used to be commit 5360e6405b170137e558fd0696ebd6030e0f5deb)
This commit is contained in:
parent
7bffc41757
commit
fb76516ccd
@ -26,7 +26,7 @@
|
||||
return a file_id which gives a unique ID for a file given the device and
|
||||
inode numbers
|
||||
*/
|
||||
static struct file_id file_id_create(SMB_DEV_T dev, SMB_INO_T inode)
|
||||
struct file_id file_id_create(SMB_DEV_T dev, SMB_INO_T inode)
|
||||
{
|
||||
struct file_id key;
|
||||
/* the ZERO_STRUCT ensures padding doesn't break using the key as a
|
||||
|
@ -140,8 +140,9 @@ static files_struct *irix_oplock_receive_message(fd_set *fds)
|
||||
* is the first fsp open with this dev,ino pair.
|
||||
*/
|
||||
|
||||
if ((fsp = file_find_di_first((SMB_DEV_T)os.os_dev,
|
||||
(SMB_INO_T)os.os_ino)) == NULL) {
|
||||
if ((fsp = file_find_di_first(
|
||||
file_id_create((SMB_DEV_T)os.os_dev,
|
||||
(SMB_INO_T)os.os_ino))) == NULL) {
|
||||
DEBUG(0,("irix_oplock_receive_message: unable to find open "
|
||||
"file with dev = %x, inode = %.0f\n",
|
||||
(unsigned int)os.os_dev, (double)os.os_ino ));
|
||||
|
Loading…
x
Reference in New Issue
Block a user