From 827a3a080545093e60984756f576a5f19893b1bb Mon Sep 17 00:00:00 2001
From: ncihnegn <ncihnegn@users.noreply.github.com>
Date: Sun, 9 Jun 2024 14:00:00 -0800
Subject: [PATCH] Fix typos

---
 src/archive.rs | 5 +----
 src/header.rs  | 4 ++--
 2 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/archive.rs b/src/archive.rs
index 613cf0a0..242ec79c 100644
--- a/src/archive.rs
+++ b/src/archive.rs
@@ -12,7 +12,7 @@ use crate::error::TarError;
 use crate::header::{SparseEntry, BLOCK_SIZE};
 use crate::other;
 use crate::pax::*;
-use crate::{Entry, GnuExtSparseHeader, GnuSparseHeader, Header};
+use crate::{Entry, GnuExtSparseHeader, Header};
 
 /// A top-level representation of an archive file.
 ///
@@ -422,9 +422,6 @@ impl<'a> EntriesFields<'a> {
                     ));
                 }
                 pax_extensions = Some(EntryFields::from(entry).read_all()?);
-                if let Some(pax_extensions_ref) = &pax_extensions {
-                    pax_size = pax_extensions_size(pax_extensions_ref);
-                }
                 // This entry has two headers.
                 // Keep pax_extensions for the next ustar header.
                 processed -= 1;
diff --git a/src/header.rs b/src/header.rs
index 4eacc061..ef691228 100644
--- a/src/header.rs
+++ b/src/header.rs
@@ -16,14 +16,14 @@ use std::str;
 use crate::other;
 use crate::EntryType;
 
-pub const BLOCK_SIZE: usize = 51
+pub const BLOCK_SIZE: usize = 512;
 /// A deterministic, arbitrary, non-zero timestamp that use used as `mtime`
 /// of headers when [`HeaderMode::Deterministic`] is used.
 ///
 /// This value, chosen after careful deliberation, corresponds to _Jul 23, 2006_,
 /// which is the date of the first commit for what would become Rust.
 #[cfg(any(unix, windows))]
-const DETERMINISTIC_TIMESTAMP: u64 = 115370408
+const DETERMINISTIC_TIMESTAMP: u64 = 1153704088;
 
 /// Representation of the header of an entry in an archive
 #[repr(C)]