We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0648d19 commit f087d93Copy full SHA for f087d93
1 file changed
src/utils/socket.rs
@@ -294,7 +294,7 @@ mod test_c_getenv {
294
}
295
296
297
- fn put_env(name: &str, value: &str) -> i32 {
+ fn c_putenv(name: &str, value: &str) -> i32 {
298
extern "C" {
299
fn _putenv(envstring: *const std::os::raw::c_char) -> std::os::raw::c_int;
300
@@ -371,7 +371,7 @@ mod test_c_getenv {
371
unsafe {
372
SetConsoleCP(cp);
373
374
- put_env(TEST_ENV_VAR_NAME, input);
+ c_putenv(TEST_ENV_VAR_NAME, input);
375
376
// The output should not be affected by the current code page
377
for codepage in &unique_codepages {
0 commit comments