commit 860d327c8f0f5d12a61deb1bcd1ef2faf671d208 from: Russ Cox date: Thu Aug 05 00:35:44 2010 UTC sam: use ulong as type of dev consistently Otherwise io.c:39 compares int != ulong, causing spurious file modification warnings when dev doesn't fit in an int. R=r http://codereview.appspot.com/1917045 commit - 4e2602a75400da71741721079d547e2b05e97a7c commit + 860d327c8f0f5d12a61deb1bcd1ef2faf671d208 blob - 04b3e1178b4c9b1aad21b13de8faee7a0fe5f3d0 blob + f182ec98625012a7c6c2c0958756d5c7ad0e37f4 --- src/cmd/sam/sam.h +++ src/cmd/sam/sam.h @@ -160,7 +160,7 @@ struct File String name; /* name of associated file */ uvlong qidpath; /* of file when read */ uint mtime; /* of file when read */ - int dev; /* of file when read */ + ulong dev; /* of file when read */ int unread; /* file has not been read from disk */ long seq; /* if seq==0, File acts like Buffer */