From patchwork Thu Jan 24 18:12:31 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: libgo patch committed: Fix typos Date: Thu, 24 Jan 2013 08:12:31 -0000 From: Ian Taylor X-Patchwork-Id: 215465 Message-Id: To: gcc-patches@gcc.gnu.org, gofrontend-dev@googlegroups.com I've committed this patch from minux to libgo to fix some typos in code that is only used on non-GNU/Linux systems: https://codereview.appspot.com/7158043 Bootstrapped on x86_64-unknown-gnu-linux, although that proves little. Committed to mainline. Ian diff -r cbf555d07453 libgo/Makefile.am --- a/libgo/Makefile.am Wed Jan 16 17:46:39 2013 -0800 +++ b/libgo/Makefile.am Thu Jan 24 10:10:28 2013 -0800 @@ -840,13 +840,13 @@ go_os_stat_file = go/os/stat_atim.go else if LIBGO_IS_DARWIN -go_os_stat_file = go/os/stat_atimspec.go +go_os_stat_file = go/os/stat_atimespec.go else if LIBGO_IS_FREEBSD -go_os_stat_file = go/os/stat_atimspec.go +go_os_stat_file = go/os/stat_atimespec.go else if LIBGO_IS_NETBSD -go_os_stat_file = go/os/stat_atimspec.go +go_os_stat_file = go/os/stat_atimespec.go else go_os_stat_file = go/os/stat.go endif diff -r cbf555d07453 libgo/go/os/stat_atimespec.go --- a/libgo/go/os/stat_atimespec.go Wed Jan 16 17:46:39 2013 -0800 +++ b/libgo/go/os/stat_atimespec.go Thu Jan 24 10:10:28 2013 -0800 @@ -19,7 +19,7 @@ fs := &fileStat{ name: basename(name), size: int64(st.Size), - modTime: timespecToTime(st.Mtimspec), + modTime: timespecToTime(st.Mtimespec), sys: st, } fs.mode = FileMode(st.Mode & 0777) @@ -57,5 +57,5 @@ // For testing. func atime(fi FileInfo) time.Time { - return timespecToTime(fi.Sys().(*syscall.Stat_t).Atimspec) + return timespecToTime(fi.Sys().(*syscall.Stat_t).Atimespec) }