patch-2.4.0-test3 linux/fs/affs/dir.c

Next file: linux/fs/affs/inode.c
Previous file: linux/fs/adfs/inode.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test2/linux/fs/affs/dir.c linux/fs/affs/dir.c
@@ -111,7 +111,7 @@
 		 * we can jump directly to where we left off.
 		 */
 		if (filp->private_data && filp->f_version == inode->i_version) {
-			i = (s32)filp->private_data;
+			i = (s32)(unsigned long)filp->private_data;
 			j = 0;
 			pr_debug("AFFS: readdir() left off=%d\n",i);
 		}
@@ -137,7 +137,7 @@
 			filp->private_data = (void *)ino;
 			if (filldir(dirent,name,namelen,filp->f_pos,ino) < 0)
 				goto readdir_done;
-			filp->private_data = (void *)i;
+			filp->private_data = (void *)(unsigned long)i;
 			affs_brelse(fh_bh);
 			fh_bh = NULL;
 			stored++;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)