aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/file.c
diff options
context:
space:
mode:
authorDan Cross <cross@gajendra.net>2020-01-10 14:44:21 +0000
committerDan Cross <cross@gajendra.net>2020-01-10 14:54:30 +0000
commitfa325e9b42b0bdfb48857d1958d9fb7ceac55151 (patch)
tree81d26256d152435135bcb1ae43121979a49f5f2b /src/cmd/file.c
parent77a0a5b5194d4441c86de097f2aae297cb75e2c2 (diff)
downloadplan9port-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/file.c')
-rw-r--r--src/cmd/file.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/cmd/file.c b/src/cmd/file.c
index 32d580cd..0ee1d1cf 100644
--- a/src/cmd/file.c
+++ b/src/cmd/file.c
@@ -52,7 +52,7 @@ struct
"common", Fword,
"con", Lword,
"data", Fword,
- "dimension", Fword,
+ "dimension", Fword,
"double", Cword,
"extern", Cword,
"bio", I2,
@@ -86,7 +86,7 @@ struct
enum {
Normal = 0,
First, /* first entry for language spanning several ranges */
- Multi, /* later entries " " " ... */
+ Multi, /* later entries " " " ... */
Shared, /* codes used in several languages */
};
@@ -97,7 +97,7 @@ struct
int low;
int high;
char *name;
-
+
} language[] =
{
Normal, 0, 0x0080, 0x0080, "Extended Latin",
@@ -127,8 +127,8 @@ struct
Shared, 0, 0x4e00, 0x9fff, "CJK",
Normal, 0, 0, 0, 0, /* terminal entry */
};
-
-
+
+
enum
{
Fascii, /* printable ascii */
@@ -342,7 +342,7 @@ filetype(int fd)
* lookup dictionary words
*/
memset(wfreq, 0, sizeof(wfreq));
- if(guess == Fascii || guess == Flatin || guess == Futf)
+ if(guess == Fascii || guess == Flatin || guess == Futf)
wordfreq();
/*
* call individual classify routines
@@ -540,7 +540,7 @@ filemagic(Filemagic *tab, int ntab, ulong x)
}
return 0;
}
-
+
int
long0(void)
{
@@ -876,7 +876,7 @@ yes:
}
if(wfreq[Alword] > 0)
print("alef program\n");
- else
+ else
print("c program\n");
return 1;
}
@@ -1042,7 +1042,7 @@ depthof(char *s, int *newp)
s++; /* skip letter */
d += strtoul(s, &s, 10);
}
-
+
switch(d){
case 32:
case 24: