Trivial changes: whitespace and modes.

Remote whitespace at the ends of lines.
Remove blank lines from the ends of files.
Change modes on source files so that they
are not executable.

Signed-off-by: Dan Cross <cross@gajendra.net>
This commit is contained in:
Dan Cross 2020-01-10 14:44:21 +00:00
parent 77a0a5b519
commit fa325e9b42
1021 changed files with 5688 additions and 6193 deletions

View file

@ -177,7 +177,7 @@ iget(int ino)
if ((flags&VFMT)==VIFDIR)
f.mode |= DMDIR;
f.uid = g2byte(dp->uid);
f.gid = g2byte(dp->gid);
f.gid = g2byte(dp->gid);
f.mdate = g4byte(dp->mtime);
return f;
}

View file

@ -34,7 +34,7 @@ getpass(char *file)
up[nid].id = atoi(line[2]);
up[nid].name = strdup(line[0]);
nid++;
}
}
Bterm(bp);
up[nid].name = 0;
return up;

View file

@ -168,7 +168,7 @@ iget(int ino)
if ((flags&VFMT)==VIFDIR)
f.mode |= DMDIR;
f.uid = g2byte(dp->uid);
f.gid = g2byte(dp->gid);
f.gid = g2byte(dp->gid);
f.mdate = g4byte(dp->mtime);
return f;
}

View file

@ -169,7 +169,7 @@ iget(int ino)
if ((flags&V6FMT)==V6IFDIR)
f.mode |= DMDIR;
f.uid = dp->uid;
f.gid = dp->gid;
f.gid = dp->gid;
f.mdate = (dp->mtime[2]<<0) + (dp->mtime[3]<<8)
+(dp->mtime[0]<<16) + (dp->mtime[1]<<24);
return f;

View file

@ -154,7 +154,7 @@ doread(Ram *r, vlong off, long cnt)
sysfatal("%d - unsupported compression method", zh.meth);
break;
}
return buf;
}
@ -382,4 +382,3 @@ msdos2time(int time, int date)
return tm2sec(&tm);
}