Commit 8d9ccdb4 authored by Niels Möller's avatar Niels Möller

* examples/rsa-decrypt.c (main): Use _setmode rather than setmode,

suggested by Eli Zaretskii.
* examples/rsa-encrypt.c (main): Likewise.

Rev: nettle/examples/rsa-decrypt.c:1.3
Rev: nettle/examples/rsa-encrypt.c:1.5
parent d41c940c
...@@ -215,8 +215,8 @@ main(int argc, char **argv) ...@@ -215,8 +215,8 @@ main(int argc, char **argv)
} }
#ifdef WIN32 #ifdef WIN32
setmode(0, O_BINARY); _setmode(0, O_BINARY);
setmode(1, O_BINARY); _setmode(1, O_BINARY);
#endif #endif
if (!read_version(stdin)) if (!read_version(stdin))
......
...@@ -216,8 +216,8 @@ main(int argc, char **argv) ...@@ -216,8 +216,8 @@ main(int argc, char **argv)
rsa_session_set_encrypt_key(&ctx, &info); rsa_session_set_encrypt_key(&ctx, &info);
#ifdef WIN32 #ifdef WIN32
setmode(0, O_BINARY); _setmode(0, O_BINARY);
setmode(1, O_BINARY); _setmode(1, O_BINARY);
#endif #endif
write_version(stdout); write_version(stdout);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment