[Cryptech-Commits] [sw/libhal] branch master updated: Previous "fix" to speed setting didn't compile on OSX.
git at cryptech.is
git at cryptech.is
Thu Jul 7 01:53:14 UTC 2016
This is an automated email from the git hooks/post-receive script.
sra at hactrn.net pushed a commit to branch master
in repository sw/libhal.
The following commit(s) were added to refs/heads/master by this push:
new 32a7c74 Previous "fix" to speed setting didn't compile on OSX.
32a7c74 is described below
commit 32a7c7414a36282a201a5f690cb1fb999bd02b8a
Author: Rob Austein <sra at hactrn.net>
AuthorDate: Wed Jul 6 21:51:50 2016 -0400
Previous "fix" to speed setting didn't compile on OSX.
---
.gitignore | 2 ++
rpc_serial.c | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore
index 3ca5e46..01c1858 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,9 +10,11 @@ tests/test-ecdsa-*.der
tests/test-hash
tests/test-mkmif
tests/test-pbkdf2
+tests/test-rpc_bighash
tests/test-rpc_get_random
tests/test-rpc_get_version
tests/test-rpc_hash
+tests/test-rpc_login
tests/test-rpc_pkey
tests/test-rpc_server
tests/test-rsa
diff --git a/rpc_serial.c b/rpc_serial.c
index 17addee..728bbd8 100644
--- a/rpc_serial.c
+++ b/rpc_serial.c
@@ -64,6 +64,7 @@ static int fd = -1;
hal_error_t hal_serial_init(const char * const device, const uint32_t speed)
{
struct termios tty;
+ speed_t termios_speed;
fd = open(device, O_RDWR | O_NOCTTY | O_SYNC);
if (fd == -1) {
@@ -75,7 +76,6 @@ hal_error_t hal_serial_init(const char * const device, const uint32_t speed)
return perror("tcgetattr"), HAL_ERROR_RPC_TRANSPORT;
#if !HAL_RPC_SERIAL_USE_MACOSX_IOCTL
- speed_t termios_speed;
switch (speed) {
case 115200:
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Commits
mailing list