summaryrefslogtreecommitdiff
path: root/internal/file
diff options
context:
space:
mode:
Diffstat (limited to 'internal/file')
-rw-r--r--internal/file/file.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/file/file.go b/internal/file/file.go
index 11acde3..9754520 100644
--- a/internal/file/file.go
+++ b/internal/file/file.go
@@ -57,9 +57,9 @@ func NewFdWithPid(fd int32, pid uint32) (f FdFile) {
}
func (f FdFile) Dup(fd int32) FdFile {
- duppedFd := f
- duppedFd.fd = fd
- return duppedFd
+ dupFd := f
+ dupFd.fd = fd
+ return dupFd
}
func readFlagsFromFdInfo(fd int32, pid uint32) (int32, error) {