authorgravatar for techatrix@mailbox.orgTechatrix <techatrix@mailbox.org> 2026-03-10 18:09:48+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-03-17 06:28:55+01:00
logbd89b61a2117d4ec0b0edb8a2b0b0aacb7388a3b
treec75d0db9f7c932fef32808bf06b36dad5556c7cf
parentbfd2cc5a3fb05fb45496df544a1f075606aac270

lib: always pass `process.Environ.Map` as const pointer if applicable


2 files changed, 3 insertions(+), 3 deletions(-)

lib/std/http/Client.zig+2-2
...@@ -1310,7 +1310,7 @@ pub fn deinit(client: *Client) void {...@@ -1310,7 +1310,7 @@ pub fn deinit(client: *Client) void {
1310/// Asserts the client has no active connections.1310/// Asserts the client has no active connections.
1311/// Uses `arena` for a few small allocations that must outlive the client, or1311/// Uses `arena` for a few small allocations that must outlive the client, or
1312/// at least until those fields are set to different values.1312/// at least until those fields are set to different values.
1313pub fn initDefaultProxies(client: *Client, arena: Allocator, environ_map: *std.process.Environ.Map) !void {1313pub fn initDefaultProxies(client: *Client, arena: Allocator, environ_map: *const std.process.Environ.Map) !void {
1314 const io = client.io;1314 const io = client.io;
13151315
1316 // Prevent any new connections from being created.1316 // Prevent any new connections from being created.
...@@ -1334,7 +1334,7 @@ pub fn initDefaultProxies(client: *Client, arena: Allocator, environ_map: *std.p...@@ -1334,7 +1334,7 @@ pub fn initDefaultProxies(client: *Client, arena: Allocator, environ_map: *std.p
13341334
1335fn createProxyFromEnvVar(1335fn createProxyFromEnvVar(
1336 arena: Allocator,1336 arena: Allocator,
1337 environ_map: *std.process.Environ.Map,1337 environ_map: *const std.process.Environ.Map,
1338 env_var_names: []const []const u8,1338 env_var_names: []const []const u8,
1339) !?*Proxy {1339) !?*Proxy {
1340 const content = for (env_var_names) |name| {1340 const content = for (env_var_names) |name| {
lib/std/zig/system/NativePaths.zig+1-1
...@@ -18,7 +18,7 @@ pub fn detect(...@@ -18,7 +18,7 @@ pub fn detect(
18 arena: Allocator,18 arena: Allocator,
19 io: Io,19 io: Io,
20 native_target: *const std.Target,20 native_target: *const std.Target,
21 environ_map: *process.Environ.Map,21 environ_map: *const process.Environ.Map,
22) !NativePaths {22) !NativePaths {
23 var self: NativePaths = .{ .arena = arena };23 var self: NativePaths = .{ .arena = arena };
24 var is_nix = false;24 var is_nix = false;