From fba2063a7330c0e4e16a797eeb015876ec2707b8 Mon Sep 17 00:00:00 2001 From: WAKAYAMA shirou Date: Thu, 24 Apr 2014 19:14:00 +0900 Subject: [PATCH] cast rdev to uint64 --- process_posix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/process_posix.go b/process_posix.go index e1f85c0..3b448d3 100644 --- a/process_posix.go +++ b/process_posix.go @@ -40,7 +40,7 @@ func getTerminalMap() (map[uint64]string, error) { for _, name := range termfiles { stat := syscall.Stat_t{} syscall.Stat(name, &stat) - rdev := stat.Rdev + rdev := uint64(stat.Rdev) ret[rdev] = strings.Replace(name, "/dev", "", -1) } return ret, nil