diff options
author | Dan Cross <cross@gajendra.net> | 2020-01-10 14:44:21 +0000 |
---|---|---|
committer | Dan Cross <cross@gajendra.net> | 2020-01-10 14:54:30 +0000 |
commit | fa325e9b42b0bdfb48857d1958d9fb7ceac55151 (patch) | |
tree | 81d26256d152435135bcb1ae43121979a49f5f2b /src/cmd/disk | |
parent | 77a0a5b5194d4441c86de097f2aae297cb75e2c2 (diff) | |
download | plan9port-fa325e9b42b0bdfb48857d1958d9fb7ceac55151.tar.gz plan9port-fa325e9b42b0bdfb48857d1958d9fb7ceac55151.tar.bz2 plan9port-fa325e9b42b0bdfb48857d1958d9fb7ceac55151.zip |
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>
Diffstat (limited to 'src/cmd/disk')
-rw-r--r-- | src/cmd/disk/mkext.c | 2 | ||||
-rw-r--r-- | src/cmd/disk/mkfs.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/disk/mkext.c b/src/cmd/disk/mkext.c index d576d24f..3a135610 100644 --- a/src/cmd/disk/mkext.c +++ b/src/cmd/disk/mkext.c @@ -64,7 +64,7 @@ main(int argc, char **argv) default: usage(); }ARGEND - + Binits(&bin, 0, OREAD, binbuf, sizeof binbuf); while(p = Brdline(&bin, '\n')){ p[Blinelen(&bin)-1] = '\0'; diff --git a/src/cmd/disk/mkfs.c b/src/cmd/disk/mkfs.c index 48de7022..2edb37f4 100644 --- a/src/cmd/disk/mkfs.c +++ b/src/cmd/disk/mkfs.c @@ -151,7 +151,7 @@ main(int argc, char **argv) usage(); }ARGEND - if(!argc) + if(!argc) usage(); buf = emalloc(buflen); @@ -514,7 +514,7 @@ setnames(File *f) strcpy(oldfile, f->old); }else sprint(oldfile, "%s%s", oldroot, f->new); - if(strlen(newfile) >= sizeof newfile + if(strlen(newfile) >= sizeof newfile || strlen(oldfile) >= sizeof oldfile) error("name overfile"); } |