shithub: mc

Download patch

ref: 2789d6a7b1965dc6902028a810c38a3a0a4c37dd
parent: 24ad64cfeecd3e2e32b116baaa04456f7cf8c4df
author: Ori Bernstein <[email protected]>
date: Mon Dec 29 18:23:47 EST 2014

Fix a couple of typos around cstrconv()

--- a/libstd/cstrconv.myr
+++ b/libstd/cstrconv.myr
@@ -3,6 +3,8 @@
 ;;
 
 const cstrconv = {buf
+	var i
+
 	for i = 0; i < buf.len; i++
 		if buf[i] == 0
 			break
--- a/libstd/syswrap+posixy.myr
+++ b/libstd/syswrap+posixy.myr
@@ -1,7 +1,7 @@
 use sys
-use "types.use"
-use "strconv.use"
+use "cstrconv.use"
 use "option.use"
+use "types.use"
 
 pkg std =
 	type fd		= sys.fd
@@ -90,7 +90,7 @@
 	si.system = cstrconv(si.uname.sysname[:])
 	si.version = cstrconv(si.uname.version[:])
 	si.relsease = cstrconv(si.uname.release[:])
-	si.arch = cstconv(si.uname.machine[:])
+	si.arch = cstrconv(si.uname.machine[:])
 }
 
 /* process stuff */