From d5020ac109b175956cb9a858bc63a4f32e55a928 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Wed, 24 Jun 2015 20:00:01 +0200 Subject: [PATCH] Fix debug functions --- .travis.yml | 1 + cmd/restic/cmd_dump.go | 4 ++-- debug/debug.go | 1 - 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 67d9a9ef5..70508ea5f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,6 +30,7 @@ install: script: - gox -verbose -os "${GOX_OS}" -tags "release" ./cmd/restic + - gox -verbose -os "${GOX_OS}" -tags "debug" ./cmd/restic.debug - go run run_tests.go all.cov - GOARCH=386 RESTIC_TEST_INTEGRATION=0 go test ./... - goveralls -coverprofile=all.cov -service=travis-ci -repotoken "$COVERALLS_TOKEN" || true diff --git a/cmd/restic/cmd_dump.go b/cmd/restic/cmd_dump.go index bf5f8db86..b80e61509 100644 --- a/cmd/restic/cmd_dump.go +++ b/cmd/restic/cmd_dump.go @@ -16,14 +16,14 @@ import ( ) type CmdDump struct { - global *MainOptions + global *GlobalOptions } func init() { _, err := parser.AddCommand("dump", "dump data structures", "The dump command dumps data structures from a repository as JSON documents", - &CmdDump{global: &mainOpts}) + &CmdDump{global: &globalOpts}) if err != nil { panic(err) } diff --git a/debug/debug.go b/debug/debug.go index 4e9094226..a76b66587 100644 --- a/debug/debug.go +++ b/debug/debug.go @@ -12,7 +12,6 @@ import ( "strconv" "strings" "sync" - "syscall" ) var opts struct {