aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRickard Andersson <gonz@severnatazvezda.com>2023-06-27 21:46:00 +0300
committerRickard Andersson <gonz@severnatazvezda.com>2023-06-27 21:46:00 +0300
commitd03d5d8f038ee5f964edd9e40441b9027c91f180 (patch)
tree607930f9388a2e0931a0f5b8d953390a415abdaf
parent6ff0ce15e76019c28707a416f60852110b16d4fc (diff)
style: use tabs
:[
-rw-r--r--core/os/os_linux.odin6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/os/os_linux.odin b/core/os/os_linux.odin
index a2c07d98e..0a3bdbb9e 100644
--- a/core/os/os_linux.odin
+++ b/core/os/os_linux.odin
@@ -894,9 +894,9 @@ get_env :: proc(key: string, allocator := context.allocator) -> (value: string)
set_env :: proc(key, value: string) -> Errno {
runtime.DEFAULT_TEMP_ALLOCATOR_TEMP_GUARD()
- key_cstring := strings.unsafe_string_to_cstring(strings.concatenate({key, "\x00"}, context.temp_allocator))
- value_cstring := strings.unsafe_string_to_cstring(strings.concatenate({value, "\x00"}, context.temp_allocator))
- // NOTE(GoNZooo): `setenv` instead of `putenv` because it copies both key and value more commonly
+ key_cstring := strings.unsafe_string_to_cstring(strings.concatenate({key, "\x00"}, context.temp_allocator))
+ value_cstring := strings.unsafe_string_to_cstring(strings.concatenate({value, "\x00"}, context.temp_allocator))
+ // NOTE(GoNZooo): `setenv` instead of `putenv` because it copies both key and value more commonly
res := _unix_setenv(key_cstring, value_cstring, 1)
if res < 0 {
return Errno(get_last_error())