--------------------- PatchSet 6551 Date: 2005/03/26 15:18:37 Author: serassio Branch: nt-2_5 Tag: (none) Log: Refined awin32 lfs changes Members: src/fs/awin32/store_dir_aufs.c:1.1.62.18->1.1.62.19 Index: squid/src/fs/awin32/store_dir_aufs.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/fs/awin32/Attic/store_dir_aufs.c,v retrieving revision 1.1.62.18 retrieving revision 1.1.62.19 diff -u -r1.1.62.18 -r1.1.62.19 --- squid/src/fs/awin32/store_dir_aufs.c 26 Mar 2005 11:11:20 -0000 1.1.62.18 +++ squid/src/fs/awin32/store_dir_aufs.c 26 Mar 2005 15:18:37 -0000 1.1.62.19 @@ -1,6 +1,6 @@ /* - * $Id: store_dir_aufs.c,v 1.1.62.18 2005/03/26 11:11:20 serassio Exp $ + * $Id: store_dir_aufs.c,v 1.1.62.19 2005/03/26 15:18:37 serassio Exp $ * * DEBUG: section 47 Store Directory Routines * AUTHOR: Duane Wessels @@ -1154,7 +1154,7 @@ hd.hdr.op = SWAP_LOG_VERSION; hd.hdr.version = 1; hd.hdr.record_size = sizeof(storeSwapLogData); - if (write(fd, &hd, sizeof(hd)) != sizeof(hd)) { + if (FD_WRITE_METHOD(fd, (const char *)&hd, sizeof(hd)) != sizeof(hd)) { debug(50, 1) ("%s: %s\n", new_path, xstrerror()); fatal("storeDirOpenTmpSwapLog: Failed to write swap log header."); } @@ -1223,7 +1223,7 @@ hd.hdr.op = SWAP_LOG_VERSION; hd.hdr.version = 1; hd.hdr.record_size = sizeof(storeSwapLogData); - if (write(state->fd, &hd, sizeof(hd)) != sizeof(hd)) { + if (FD_WRITE_METHOD(state->fd, (const char *)&hd, sizeof(hd)) != sizeof(hd)) { debug(50, 1) ("%s: %s\n", state->new, xstrerror()); fatal("storeAufsDirWriteCleanStart: Failed to write swap log header."); }