aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/fossil
diff options
context:
space:
mode:
authorDavid du Colombier <0intro@gmail.com>2013-09-26 22:31:11 +0200
committerDavid du Colombier <0intro@gmail.com>2013-09-26 22:31:11 +0200
commit3fcc209df911ca39a2c218fdacdd92eefb5ab281 (patch)
tree010998c6fd0a352802ebcbe240450b03a6424771 /src/cmd/fossil
parent3c612e13a19b9a7f1d97d3dd82b07e70717e6b63 (diff)
downloadplan9port-3fcc209df911ca39a2c218fdacdd92eefb5ab281.tar.gz
plan9port-3fcc209df911ca39a2c218fdacdd92eefb5ab281.tar.bz2
plan9port-3fcc209df911ca39a2c218fdacdd92eefb5ab281.zip
fossil: cast Qid.vers, Dir.mode and Qid.mtime to u32int (thanks Tim Kack)
R=rsc https://codereview.appspot.com/13981043
Diffstat (limited to 'src/cmd/fossil')
-rw-r--r--src/cmd/fossil/9p.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cmd/fossil/9p.c b/src/cmd/fossil/9p.c
index 01033596..6738670e 100644
--- a/src/cmd/fossil/9p.c
+++ b/src/cmd/fossil/9p.c
@@ -165,7 +165,7 @@ rTwstat(Msg* m)
}
tsync = 0;
}
- if(dir.qid.vers != ~0){
+ if(dir.qid.vers != (u32int)~0){
if(dir.qid.vers != de.mcount){
werrstr("wstat -- attempt to change qid.vers");
goto error;
@@ -189,7 +189,7 @@ rTwstat(Msg* m)
/*
* Check .qid.type and .mode agree if neither is defaulted.
*/
- if(dir.qid.type != (uchar)~0 && dir.mode != ~0){
+ if(dir.qid.type != (uchar)~0 && dir.mode != (u32int)~0){
if(dir.qid.type != ((dir.mode>>24) & 0xFF)){
werrstr("wstat -- qid.type/mode mismatch");
goto error;
@@ -199,7 +199,7 @@ rTwstat(Msg* m)
op = 0;
oldmode = de.mode;
- if(dir.qid.type != (uchar)~0 || dir.mode != ~0){
+ if(dir.qid.type != (uchar)~0 || dir.mode != (u32int)~0){
/*
* .qid.type or .mode isn't defaulted, check for unknown bits.
*/
@@ -236,7 +236,7 @@ rTwstat(Msg* m)
tsync = 0;
}
- if(dir.mtime != ~0){
+ if(dir.mtime != (u32int)~0){
if(dir.mtime != de.mtime){
de.mtime = dir.mtime;
op = 1;