diff options
author | Jeremy Allison <jra@samba.org> | 2006-01-12 22:17:54 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2006-01-12 22:17:54 +0000 |
commit | 43543f32b912b4a393ad7c292d2eae3935b5cbcc (patch) | |
tree | 26791cb8610f024c67a930fdf56ef05c15f24920 /source/smbd/trans2.c | |
parent | 0ff3a1ecb2abec6a73252a476a0aa250dcdada02 (diff) | |
download | samba-43543f32b912b4a393ad7c292d2eae3935b5cbcc.tar.gz samba-43543f32b912b4a393ad7c292d2eae3935b5cbcc.tar.xz samba-43543f32b912b4a393ad7c292d2eae3935b5cbcc.zip |
r12877: Stop passing structs around in smb messages, instead
always linearize into little-endian. Should fix all
Solaris issues with this, plus provide a cleaner base
moving forward for cluster-aware Samba where smbd's
can communicate across different compilers/architectures
(eventually these message will have to go cross-machine).
Jeremy.
Diffstat (limited to 'source/smbd/trans2.c')
-rw-r--r-- | source/smbd/trans2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/smbd/trans2.c b/source/smbd/trans2.c index 191ccdcf8bd..8ff219b468c 100644 --- a/source/smbd/trans2.c +++ b/source/smbd/trans2.c @@ -1536,7 +1536,7 @@ static BOOL get_lanman2_dir_entry(connection_struct *conn, SIVAL(p,4,0); p+= 8; - SINO_T(p,0,(SMB_INO_T)sbuf.st_ino); /* inode number */ + SINO_T_VAL(p,0,(SMB_INO_T)sbuf.st_ino); /* inode number */ p+= 8; SIVAL(p,0, unix_perms_to_wire(sbuf.st_mode)); /* Standard UNIX file permissions */ @@ -3353,7 +3353,7 @@ total_data=%u (should be %u)\n", (unsigned int)total_data, (unsigned int)IVAL(pd SIVAL(pdata,4,0); pdata += 8; - SINO_T(pdata,0,(SMB_INO_T)sbuf.st_ino); /* inode number */ + SINO_T_VAL(pdata,0,(SMB_INO_T)sbuf.st_ino); /* inode number */ pdata += 8; SIVAL(pdata,0, unix_perms_to_wire(sbuf.st_mode)); /* Standard UNIX file permissions */ |