change unmodified vars to consts in anticipation of zig changes

This commit is contained in:
Krzysztof Wolicki
2023-11-17 15:40:59 +01:00
parent 7a4e167ab3
commit 44a48f62f1
29 changed files with 414 additions and 414 deletions

View File

@@ -310,7 +310,7 @@ pub fn wait(self: Command, block: bool) !Exit {
}
var exit_code: windows.DWORD = undefined;
var has_code = windows.kernel32.GetExitCodeProcess(self.pid.?, &exit_code) != 0;
const has_code = windows.kernel32.GetExitCodeProcess(self.pid.?, &exit_code) != 0;
if (!has_code) {
return windows.unexpectedError(windows.kernel32.GetLastError());
}