aboutsummaryrefslogtreecommitdiff
path: root/rpc_client_serial.c
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-05-14 12:01:37 -0400
committerRob Austein <sra@hactrn.net>2016-05-14 12:01:37 -0400
commitb1225c11f89dad1a749b6572e50e5e5fce5234e8 (patch)
tree9a48533db312fcb73d1c922851a6b51c3299b8e7 /rpc_client_serial.c
parentc861f7d2f3c5f69c02a633c51113518b70eedc27 (diff)
Trailing whitespace cleanup.
Diffstat (limited to 'rpc_client_serial.c')
-rw-r--r--rpc_client_serial.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpc_client_serial.c b/rpc_client_serial.c
index d6bda1d..5194793 100644
--- a/rpc_client_serial.c
+++ b/rpc_client_serial.c
@@ -52,7 +52,7 @@ static int fd = -1;
hal_error_t hal_rpc_client_transport_init(void)
{
struct termios tty;
-
+
fd = open(DEVICE, O_RDWR | O_NOCTTY | O_SYNC);
if (fd == -1)
return perror("open"), HAL_ERROR_RPC_TRANSPORT;
@@ -98,7 +98,7 @@ hal_error_t hal_rpc_send(const uint8_t * const buf, const size_t len)
hal_error_t hal_rpc_recv(uint8_t * const buf, size_t * const len)
{
int ret;
-
+
if ((ret = hal_slip_recv(buf, *len)) == -1)
return HAL_ERROR_RPC_TRANSPORT;
*len = ret;