Skip to content
Snippets Groups Projects
Commit 8d9ccdb4 authored by Niels Möller's avatar Niels Möller
Browse files

* 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
No related branches found
No related tags found
No related merge requests found
......@@ -215,8 +215,8 @@ main(int argc, char **argv)
}
#ifdef WIN32
setmode(0, O_BINARY);
setmode(1, O_BINARY);
_setmode(0, O_BINARY);
_setmode(1, O_BINARY);
#endif
if (!read_version(stdin))
......
......@@ -216,8 +216,8 @@ main(int argc, char **argv)
rsa_session_set_encrypt_key(&ctx, &info);
#ifdef WIN32
setmode(0, O_BINARY);
setmode(1, O_BINARY);
_setmode(0, O_BINARY);
_setmode(1, O_BINARY);
#endif
write_version(stdout);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment