summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Nazaryev <sergey@nazaryev.ru>2016-04-24 13:14:34 +0000
committerSergey Nazaryev <sergey@nazaryev.ru>2016-04-24 13:14:34 +0000
commit19a5db6c6a50c61938976b02f625fd1bdcd5118e (patch)
treef17e382409fd7436ae3bc46dba2ac27c815a06bc
parent4ac1cfd94f5d0ada8234b63ba6e92da0f5a3d770 (diff)
downloadpa4-19a5db6c6a50c61938976b02f625fd1bdcd5118e.zip
pa4-19a5db6c6a50c61938976b02f625fd1bdcd5118e.tar.gz
pa4-19a5db6c6a50c61938976b02f625fd1bdcd5118e.tar.bz2
Removed trailing whitespaces
-rw-r--r--banking.c2
-rw-r--r--child.c8
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 );