summaryrefslogtreecommitdiffstats
path: root/usr.bin/file/is_tar.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/file/is_tar.c')
-rw-r--r--usr.bin/file/is_tar.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/file/is_tar.c b/usr.bin/file/is_tar.c
index 5b036be..fc9cce2 100644
--- a/usr.bin/file/is_tar.c
+++ b/usr.bin/file/is_tar.c
@@ -5,7 +5,7 @@
* Pubic Domain version written 26 Aug 1985 John Gilmore (ihnp4!hoptoad!gnu).
*
* @(#)list.c 1.18 9/23/86 Public Domain - gnu
- * $Id: is_tar.c,v 1.8 1993/09/16 21:09:35 christos Exp $
+ * $Id: is_tar.c,v 1.1.1.1 1994/09/03 19:16:22 csgr Exp $
*
* Comments changed and some code/comments reformatted
* for file command by Ian Darwin.
@@ -25,8 +25,8 @@ static long from_oct();
#endif
/*
- * Return
- * 0 if the checksum is bad (i.e., probably not a tar archive),
+ * Return
+ * 0 if the checksum is bad (i.e., probably not a tar archive),
* 1 for old UNIX tar file,
* 2 for Unix Std (POSIX) tar file.
*/
@@ -58,12 +58,12 @@ int nbytes;
/* Adjust checksum to count the "chksum" field as blanks. */
for (i = sizeof(header->header.chksum); --i >= 0;)
sum -= 0xFF & header->header.chksum[i];
- sum += ' '* sizeof header->header.chksum;
+ sum += ' '* sizeof header->header.chksum;
if (sum != recsum)
return 0; /* Not a tar archive */
-
- if (0==strcmp(header->header.magic, TMAGIC))
+
+ if (0==strcmp(header->header.magic, TMAGIC))
return 2; /* Unix Standard tar archive */
return 1; /* Old fashioned tar archive */
OpenPOWER on IntegriCloud