aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/pack
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/pack')
-rw-r--r--src/cmd/pack/pack.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cmd/pack/pack.go b/src/cmd/pack/pack.go
index 090e5bbb77..95ecad01a1 100644
--- a/src/cmd/pack/pack.go
+++ b/src/cmd/pack/pack.go
@@ -266,7 +266,7 @@ func (ar *Archive) scan(action func(*Entry)) {
}
// listEntry prints to standard output a line describing the entry.
-func listEntry(ar *Archive, entry *Entry, verbose bool) {
+func listEntry(entry *Entry, verbose bool) {
if verbose {
fmt.Fprintf(stdout, "%s\n", entry)
} else {
@@ -457,7 +457,7 @@ var stdout io.Writer = os.Stdout
func (ar *Archive) printContents(entry *Entry) {
if ar.match(entry) {
if verbose {
- listEntry(ar, entry, false)
+ listEntry(entry, false)
}
ar.output(entry, stdout)
} else {
@@ -474,7 +474,7 @@ func (ar *Archive) skipContents(entry *Entry) {
// tableOfContents implements the 't' command.
func (ar *Archive) tableOfContents(entry *Entry) {
if ar.match(entry) {
- listEntry(ar, entry, verbose)
+ listEntry(entry, verbose)
}
ar.skip(entry)
}
@@ -483,7 +483,7 @@ func (ar *Archive) tableOfContents(entry *Entry) {
func (ar *Archive) extractContents(entry *Entry) {
if ar.match(entry) {
if verbose {
- listEntry(ar, entry, false)
+ listEntry(entry, false)
}
fd, err := os.OpenFile(entry.name, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, entry.mode)
if err != nil {