diff options
author | Sergey Nazaryev <sergey@nazaryev.ru> | 2016-04-24 13:14:34 +0000 |
---|---|---|
committer | Sergey Nazaryev <sergey@nazaryev.ru> | 2016-04-24 13:14:34 +0000 |
commit | 19a5db6c6a50c61938976b02f625fd1bdcd5118e (patch) | |
tree | f17e382409fd7436ae3bc46dba2ac27c815a06bc | |
parent | 4ac1cfd94f5d0ada8234b63ba6e92da0f5a3d770 (diff) | |
download | pa2-19a5db6c6a50c61938976b02f625fd1bdcd5118e.zip pa2-19a5db6c6a50c61938976b02f625fd1bdcd5118e.tar.gz pa2-19a5db6c6a50c61938976b02f625fd1bdcd5118e.tar.bz2 |
Removed trailing whitespaces
-rw-r--r-- | banking.c | 2 | ||||
-rw-r--r-- | child.c | 8 |
2 files changed, 5 insertions, 5 deletions
@@ -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 ) ) { @@ -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 ); |