diff options
| author | gingerBill <bill@gingerbill.org> | 2019-08-13 22:39:53 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2019-08-13 22:39:53 +0100 |
| commit | 980890ee8a5fdfd1dc0ae6412fcf004eb250bb08 (patch) | |
| tree | 4c1d758f99f05540f5b5cb29002aff24387bf157 | |
| parent | 0a63690b399da06e7de887854b38d5e95c712431 (diff) | |
Make -vet happy on *nix
| -rw-r--r-- | core/os/os_linux.odin | 6 | ||||
| -rw-r--r-- | core/os/os_osx.odin | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/core/os/os_linux.odin b/core/os/os_linux.odin index 1587e2ad1..13eab5def 100644 --- a/core/os/os_linux.odin +++ b/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; } diff --git a/core/os/os_osx.odin b/core/os/os_osx.odin index 302cba76a..3185fecc6 100644 --- a/core/os/os_osx.odin +++ b/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; } |