]> Dogcows Code - chaz/tar/blobdiff - src/extract.c
*** empty log message ***
[chaz/tar] / src / extract.c
index 8e6e27777750e790cf0b9941de01faa705abe6de..b717114e3d638f857f84d10fb7943dc19362ea56 100644 (file)
@@ -1,5 +1,5 @@
 /* Extract files from a tar archive.
-   Copyright (C) 1988, 1992 Free Software Foundation
+   Copyright (C) 1988, 1992, 1993 Free Software Foundation
 
 This file is part of GNU Tar.
 
@@ -153,8 +153,6 @@ extract_archive ()
   union record *exhdr;
   struct saved_dir_info *tmp;
   /*   int end_nulls; */
-  char **longp;
-  char *bp;
 
   saverec (&head);             /* Make sure it sticks around */
   userec (head);               /* And go past it in the archive */
@@ -501,12 +499,12 @@ extract_archive ()
        }
 
       /*
-                 * Set the modified time of the file.
-                 *
-                 * Note that we set the accessed time to "now", which
-                 * is really "the time we started extracting files".
-                 * unless f_gnudump is used, in which case .st_atime is used
-                 */
+       * Set the modified time of the file.
+       *
+       * Note that we set the accessed time to "now", which
+       * is really "the time we started extracting files".
+       * unless f_gnudump is used, in which case .st_atime is used
+       */
       if (!f_modified)
        {
          /* fixme if f_gnudump should set ctime too, but how? */
@@ -818,7 +816,8 @@ extract_sparse_file (fd, sizeleft, totalsize, name)
        }
       else if (count != written)
        {
-         msg ("could only write %d of %d bytes to file %s", totalsize - *sizeleft, totalsize, name);
+         msg ("could only write %d of %d bytes to file %s", count, 
+              totalsize, name);
          skip_file ((long) (*sizeleft));
        }
 
@@ -842,7 +841,6 @@ void
 restore_saved_dir_info ()
 {
   struct utimbuf acc_upd_times;
-  struct saved_dir_info *tmp;
 
   while (saved_dir_info_head != NULL)
     {
This page took 0.02672 seconds and 4 git commands to generate.