aboutsummaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2019-03-13 11:51:59 +0100
committerGiuseppe Scrivano <gscrivan@redhat.com>2019-03-15 10:39:38 +0100
commit549e81ff3bb4f4d19ea671fc552e12594b1368d0 (patch)
tree42c4939b0ff860bdfccb0f6d833bfabe9051d941 /libpod
parent39859850aec4d0d3fe8bcf7804f6f02a245e2b6e (diff)
downloadpodman-549e81ff3bb4f4d19ea671fc552e12594b1368d0.tar.gz
podman-549e81ff3bb4f4d19ea671fc552e12594b1368d0.tar.bz2
podman-549e81ff3bb4f4d19ea671fc552e12594b1368d0.zip
events: use os.SEEK_END instead of its value
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'libpod')
-rw-r--r--libpod/events.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/libpod/events.go b/libpod/events.go
index 879aeb6c5..f09529a05 100644
--- a/libpod/events.go
+++ b/libpod/events.go
@@ -1,6 +1,8 @@
package libpod
import (
+ "os"
+
"github.com/containers/libpod/libpod/events"
"github.com/hpcloud/tail"
"github.com/pkg/errors"
@@ -85,7 +87,7 @@ func (r *Runtime) Events(fromStart, stream bool, options []events.EventFilter, e
func (r *Runtime) getTail(fromStart, stream bool) (*tail.Tail, error) {
reopen := true
- seek := tail.SeekInfo{Offset: 0, Whence: 2}
+ seek := tail.SeekInfo{Offset: 0, Whence: os.SEEK_END}
if fromStart || !stream {
seek.Whence = 0
reopen = false