Commit 668f05aa authored by Scott Lawrence's avatar Scott Lawrence Committed by Rob Pike

os: make return type of FileInfo.Permission() consistent with related functions

(uint32 rather than int)

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/1958048
parent d0459447
......@@ -53,4 +53,4 @@ func (f *FileInfo) IsSymlink() bool { return (f.Mode & syscall.S_IFMT) == syscal
func (f *FileInfo) IsSocket() bool { return (f.Mode & syscall.S_IFMT) == syscall.S_IFSOCK }
// Permission returns the file permission bits.
func (f *FileInfo) Permission() int { return int(f.Mode & 0777) }
func (f *FileInfo) Permission() uint32 { return f.Mode & 0777 }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment