From 19a5db6c6a50c61938976b02f625fd1bdcd5118e Mon Sep 17 00:00:00 2001 From: Sergey Nazaryev Date: Sun, 24 Apr 2016 13:14:34 +0000 Subject: Removed trailing whitespaces --- banking.c | 2 +- child.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/banking.c b/banking.c index 2562645..b5285e6 100644 --- a/banking.c +++ b/banking.c @@ -25,7 +25,7 @@ void transfer(void * parent_data, local_id src, local_id dst, balance_t amount) .s_local_time = get_physical_time() } }; - memcpy( msg.s_payload, &order, sizeof( order ) ); + memcpy( msg.s_payload, &order, sizeof( order ) ); send( me, src, &msg ); if( !receive( me, dst, &msg ) ) { diff --git a/child.c b/child.c index 56c32d1..9f2a1d9 100644 --- a/child.c +++ b/child.c @@ -90,7 +90,7 @@ void child_phase2( dist_info_t *info, uint8_t id, BalanceHistory *history ) { } if( order->s_src == id ) { - snprintf( buf, sizeof(buf), log_transfer_out_fmt, + snprintf( buf, sizeof(buf), log_transfer_out_fmt, get_physical_time(), order->s_src, order->s_amount, order->s_dst ); fputs( buf, info->events_log ); @@ -99,7 +99,7 @@ void child_phase2( dist_info_t *info, uint8_t id, BalanceHistory *history ) { info->balances[ id ] -= order->s_amount; send( &me, order->s_dst, &msg ); } else if( order->s_dst == id ) { - snprintf( buf, sizeof(buf), log_transfer_in_fmt, + snprintf( buf, sizeof(buf), log_transfer_in_fmt, get_physical_time(), order->s_dst, order->s_amount, order->s_src); fputs( buf, info->events_log ); @@ -143,7 +143,7 @@ void child_phase3( dist_info_t *info, uint8_t id, BalanceHistory *history ) { .dist_info = info }; - int size = snprintf( buf, sizeof(buf), log_done_fmt, + int size = snprintf( buf, sizeof(buf), log_done_fmt, get_physical_time(), id, info->balances[ id ] ); @@ -174,7 +174,7 @@ void child_phase3( dist_info_t *info, uint8_t id, BalanceHistory *history ) { } } - snprintf( buf, sizeof(buf), log_received_all_done_fmt, + snprintf( buf, sizeof(buf), log_received_all_done_fmt, get_physical_time(), id ); fputs( buf, info->events_log ); fputs( buf, stdout ); -- cgit v1.1