Browse Source

Make -vet happy on *nix

gingerBill 6 years ago
parent
commit
980890ee8a
2 changed files with 6 additions and 6 deletions
  1. 3 3
      core/os/os_linux.odin
  2. 3 3
      core/os/os_osx.odin

+ 3 - 3
core/os/os_linux.odin

@@ -392,9 +392,9 @@ dlerror :: proc() -> string {
 
 
 _alloc_command_line_arguments :: proc() -> []string {
-	args := make([]string, len(runtime.args__));
+	res := make([]string, len(runtime.args__));
 	for arg, i in runtime.args__ {
-		args[i] = string(arg);
+		res[i] = string(arg);
 	}
-	return args;
+	return res;
 }

+ 3 - 3
core/os/os_osx.odin

@@ -287,9 +287,9 @@ dlerror :: proc() -> string {
 
 
 _alloc_command_line_arguments :: proc() -> []string {
-	args := make([]string, len(runtime.args__));
+	res := make([]string, len(runtime.args__));
 	for arg, i in runtime.args__ {
-		args[i] = string(arg);
+		res[i] = string(arg);
 	}
-	return args;
+	return res;
 }