projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lint cleanup
[unix-history]
/
usr
/
src
/
usr.bin
/
file
/
file.c
diff --git
a/usr/src/usr.bin/file/file.c
b/usr/src/usr.bin/file/file.c
index
d0fa502
..
0c98d30
100644
(file)
--- a/
usr/src/usr.bin/file/file.c
+++ b/
usr/src/usr.bin/file/file.c
@@
-1,5
+1,5
@@
#ifndef lint
#ifndef lint
-static char sccsid[] = "@(#)file.c 4.1
2
(Berkeley) %G%";
+static char sccsid[] = "@(#)file.c 4.1
5
(Berkeley) %G%";
#endif
/*
* file - determine type of file
#endif
/*
* file - determine type of file
@@
-10,9
+10,11
@@
static char sccsid[] = "@(#)file.c 4.12 (Berkeley) %G%";
#include <stdio.h>
#include <ctype.h>
#include <a.out.h>
#include <stdio.h>
#include <ctype.h>
#include <a.out.h>
-int errno;
-int sys_nerr;
-char *sys_errlist[];
+
+extern int errno;
+extern int sys_nerr;
+extern char *sys_errlist[];
+
int in;
int i = 0;
char buf[BUFSIZ];
int in;
int i = 0;
char buf[BUFSIZ];
@@
-41,7
+43,6
@@
char **argv;
FILE *fl;
register char *p;
char ap[MAXPATHLEN + 1];
FILE *fl;
register char *p;
char ap[MAXPATHLEN + 1];
- extern char _sobuf[];
if (argc < 2) {
fprintf(stderr, "usage: %s file ...\n", argv[0]);
if (argc < 2) {
fprintf(stderr, "usage: %s file ...\n", argv[0]);
@@
-420,7
+421,7
@@
char *bp;
ct[j]=0;
for(j=0; j<n; j++)
{
ct[j]=0;
for(j=0; j<n; j++)
{
- if (bp[j]<NASC)
+ if (
(u_char)
bp[j]<NASC)
ct[bp[j]|040]++;
switch (bp[j])
{
ct[bp[j]|040]++;
switch (bp[j])
{