Commit 7545e169 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 c8d8cd6e
......@@ -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);
......
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