diff mbox

libgo patch committed: Fix typos

Message ID mcr1udaa1rk.fsf@google.com
State New
Headers show

Commit Message

Ian Lance Taylor Jan. 24, 2013, 6:12 p.m. UTC
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 mbox

Patch

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)
 }