adouble: pass VFS handle and fsp to ad_pack()
authorRalph Boehme <slow@samba.org>
Thu, 4 Jul 2019 09:35:19 +0000 (11:35 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 12 Jul 2019 21:31:29 +0000 (21:31 +0000)
Unused for now, that comes next.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/lib/adouble.c

index 8eeeb0ed29184bc301b12ac67b60e55878eb0d60..21d5162c8ff40d83a437e211e70a130638a5aa7a 100644 (file)
@@ -328,7 +328,9 @@ static uint32_t get_eid(uint32_t eid)
 /**
  * Pack AppleDouble structure into data buffer
  **/
-static bool ad_pack(struct adouble *ad)
+static bool ad_pack(struct vfs_handle_struct *handle,
+                   struct adouble *ad,
+                   files_struct *fsp)
 {
        uint32_t       eid;
        uint16_t       nent;
@@ -1666,7 +1668,7 @@ int ad_set(vfs_handle_struct *handle,
                return -1;
        }
 
-       ok = ad_pack(ad);
+       ok = ad_pack(handle, ad, NULL);
        if (!ok) {
                return -1;
        }
@@ -1707,7 +1709,7 @@ int ad_fset(struct vfs_handle_struct *handle,
                smb_panic("bad fsp");
        }
 
-       ok = ad_pack(ad);
+       ok = ad_pack(handle, ad, fsp);
        if (!ok) {
                return -1;
        }