summaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/taler-merchant-httpd.c2
-rw-r--r--src/backend/taler-merchant-httpd_auditors.c1
-rw-r--r--src/backend/taler-merchant-httpd_auditors.h2
-rw-r--r--src/backend/taler-merchant-httpd_check-payment.c3
-rw-r--r--src/backend/taler-merchant-httpd_config.c1
-rw-r--r--src/backend/taler-merchant-httpd_exchanges.c2
-rw-r--r--src/backend/taler-merchant-httpd_history.c1
-rw-r--r--src/backend/taler-merchant-httpd_parsing.c4
-rw-r--r--src/backend/taler-merchant-httpd_pay.c7
-rw-r--r--src/backend/taler-merchant-httpd_proposal.h1
-rw-r--r--src/backend/taler-merchant-httpd_refund.c3
-rw-r--r--src/backend/taler-merchant-httpd_tip-authorize.c1
-rw-r--r--src/backend/taler-merchant-httpd_tip-query.c1
-rw-r--r--src/backend/taler-merchant-httpd_track-transfer.c5
14 files changed, 15 insertions, 19 deletions
diff --git a/src/backend/taler-merchant-httpd.c b/src/backend/taler-merchant-httpd.c
index 66dcc461..42e15ea1 100644
--- a/src/backend/taler-merchant-httpd.c
+++ b/src/backend/taler-merchant-httpd.c
@@ -168,7 +168,7 @@ is_valid_correlation_id (const char *correlation_id)
if (strlen (correlation_id) >= 64)
return GNUNET_NO;
for (size_t i = 0; i < strlen (correlation_id); i++)
- if (! (isalnum (correlation_id[i]) ||(correlation_id[i] == '-')))
+ if (! (isalnum (correlation_id[i]) || (correlation_id[i] == '-')))
return GNUNET_NO;
return GNUNET_YES;
}
diff --git a/src/backend/taler-merchant-httpd_auditors.c b/src/backend/taler-merchant-httpd_auditors.c
index 9aab2374..fc255836 100644
--- a/src/backend/taler-merchant-httpd_auditors.c
+++ b/src/backend/taler-merchant-httpd_auditors.c
@@ -270,4 +270,5 @@ TMH_AUDITORS_done ()
nauditors = 0;
}
+
/* end of taler-merchant-httpd_auditors.c */
diff --git a/src/backend/taler-merchant-httpd_auditors.h b/src/backend/taler-merchant-httpd_auditors.h
index cc980b88..e3ec292e 100644
--- a/src/backend/taler-merchant-httpd_auditors.h
+++ b/src/backend/taler-merchant-httpd_auditors.h
@@ -69,6 +69,4 @@ void
TMH_AUDITORS_done (void);
-
-
#endif
diff --git a/src/backend/taler-merchant-httpd_check-payment.c b/src/backend/taler-merchant-httpd_check-payment.c
index ee7c9289..02a5120b 100644
--- a/src/backend/taler-merchant-httpd_check-payment.c
+++ b/src/backend/taler-merchant-httpd_check-payment.c
@@ -37,7 +37,6 @@
#define MAX_RETRIES 5
-
/**
* Make a taler://pay URI
*
@@ -106,7 +105,6 @@ make_taler_pay_uri (struct MHD_Connection *connection,
}
-
/**
* Function called with information about a refund.
* It is responsible for summing up the refund amount.
@@ -427,7 +425,6 @@ MH_handler_check_payment (struct TMH_RequestHandler *rh,
GNUNET_HashCode));
-
/* Check if the order has been paid for. */
if (NULL != session_id)
{
diff --git a/src/backend/taler-merchant-httpd_config.c b/src/backend/taler-merchant-httpd_config.c
index 21fb55cc..8af84e91 100644
--- a/src/backend/taler-merchant-httpd_config.c
+++ b/src/backend/taler-merchant-httpd_config.c
@@ -56,4 +56,5 @@ MH_handler_config (struct TMH_RequestHandler *rh,
"currency", TMH_currency);
}
+
/* end of taler-merchant-httpd_config.c */
diff --git a/src/backend/taler-merchant-httpd_exchanges.c b/src/backend/taler-merchant-httpd_exchanges.c
index a589fbaa..1dfd8100 100644
--- a/src/backend/taler-merchant-httpd_exchanges.c
+++ b/src/backend/taler-merchant-httpd_exchanges.c
@@ -25,7 +25,6 @@
#include "taler-merchant-httpd_exchanges.h"
-
/**
* Delay after which we'll re-fetch key information from the exchange.
*/
@@ -1153,4 +1152,5 @@ TMH_EXCHANGES_done ()
trusted_exchanges = NULL;
}
+
/* end of taler-merchant-httpd_exchanges.c */
diff --git a/src/backend/taler-merchant-httpd_history.c b/src/backend/taler-merchant-httpd_history.c
index 5db0fb61..e4ba5092 100644
--- a/src/backend/taler-merchant-httpd_history.c
+++ b/src/backend/taler-merchant-httpd_history.c
@@ -290,4 +290,5 @@ MH_handler_history (struct TMH_RequestHandler *rh,
return ret;
}
+
/* end of taler-merchant-httpd_history.c */
diff --git a/src/backend/taler-merchant-httpd_parsing.c b/src/backend/taler-merchant-httpd_parsing.c
index 7e21482a..497db87a 100644
--- a/src/backend/taler-merchant-httpd_parsing.c
+++ b/src/backend/taler-merchant-httpd_parsing.c
@@ -67,8 +67,6 @@ struct Buffer
};
-
-
/**
* Free the data in a buffer. Does *not* free
* the buffer object itself.
@@ -83,7 +81,6 @@ buffer_deinit (struct Buffer *buf)
}
-
/**
* Function called whenever we are done with a request
* to clean up our state.
@@ -220,7 +217,6 @@ TMH_PARSE_json_data (struct MHD_Connection *connection,
}
-
/**
* Extract base32crockford encoded data from request.
*
diff --git a/src/backend/taler-merchant-httpd_pay.c b/src/backend/taler-merchant-httpd_pay.c
index 7b2e3fb9..69b8e2d4 100644
--- a/src/backend/taler-merchant-httpd_pay.c
+++ b/src/backend/taler-merchant-httpd_pay.c
@@ -738,8 +738,7 @@ check_payment_sufficient (struct PayContext *pc)
* Deposit fees of *all* the coins are higher than
* the fixed limit that the merchant is willing to
* pay. The fees difference must be paid by the customer.
- */
- if (-1 == TALER_amount_cmp (&pc->max_fee,
+ */if (-1 == TALER_amount_cmp (&pc->max_fee,
&acc_fee))
{
struct TALER_Amount excess_fee;
@@ -783,8 +782,7 @@ check_payment_sufficient (struct PayContext *pc)
* fraction, and check that the remaining paid amount is
* enough to pay both the remaining wire fee customer's
* fraction AND the price of the contract itself.
- */
- else
+ */else
{
struct TALER_Amount deposit_fee_savings;
@@ -2230,4 +2228,5 @@ MH_handler_pay (struct TMH_RequestHandler *rh,
return MHD_YES;
}
+
/* end of taler-merchant-httpd_pay.c */
diff --git a/src/backend/taler-merchant-httpd_proposal.h b/src/backend/taler-merchant-httpd_proposal.h
index 4edac090..b1185235 100644
--- a/src/backend/taler-merchant-httpd_proposal.h
+++ b/src/backend/taler-merchant-httpd_proposal.h
@@ -65,4 +65,5 @@ MH_handler_proposal_lookup (struct TMH_RequestHandler *rh,
const char *upload_data,
size_t *upload_data_size,
struct MerchantInstance *mi);
+
#endif
diff --git a/src/backend/taler-merchant-httpd_refund.c b/src/backend/taler-merchant-httpd_refund.c
index a9d8ab18..a7b1660d 100644
--- a/src/backend/taler-merchant-httpd_refund.c
+++ b/src/backend/taler-merchant-httpd_refund.c
@@ -349,8 +349,7 @@ MH_handler_refund_increase (struct TMH_RequestHandler *rh,
*
* Just a "200 OK" should be fine here, as the frontend has all
* the information needed to generate the right response.
- */
- confirmation.purpose.purpose = htonl (TALER_SIGNATURE_MERCHANT_REFUND_OK);
+ */confirmation.purpose.purpose = htonl (TALER_SIGNATURE_MERCHANT_REFUND_OK);
confirmation.purpose.size = htonl (sizeof (struct
TALER_MerchantRefundConfirmationPS));
GNUNET_CRYPTO_hash (order_id,
diff --git a/src/backend/taler-merchant-httpd_tip-authorize.c b/src/backend/taler-merchant-httpd_tip-authorize.c
index 67c4a6e6..7580f445 100644
--- a/src/backend/taler-merchant-httpd_tip-authorize.c
+++ b/src/backend/taler-merchant-httpd_tip-authorize.c
@@ -301,4 +301,5 @@ MH_handler_tip_authorize (struct TMH_RequestHandler *rh,
}
}
+
/* end of taler-merchant-httpd_tip-authorize.c */
diff --git a/src/backend/taler-merchant-httpd_tip-query.c b/src/backend/taler-merchant-httpd_tip-query.c
index d54625c0..d4a86a7a 100644
--- a/src/backend/taler-merchant-httpd_tip-query.c
+++ b/src/backend/taler-merchant-httpd_tip-query.c
@@ -235,4 +235,5 @@ MH_handler_tip_query (struct TMH_RequestHandler *rh,
return MHD_YES;
}
+
/* end of taler-merchant-httpd_tip-query.c */
diff --git a/src/backend/taler-merchant-httpd_track-transfer.c b/src/backend/taler-merchant-httpd_track-transfer.c
index e9e0cb97..b73bde92 100644
--- a/src/backend/taler-merchant-httpd_track-transfer.c
+++ b/src/backend/taler-merchant-httpd_track-transfer.c
@@ -197,6 +197,7 @@ free_transfer_track_context (struct TrackTransferContext *rctx)
GNUNET_free (rctx);
}
+
/**
* Callback that frees all the elements in the hashmap
*
@@ -688,8 +689,7 @@ wire_transfer_cb (void *cls,
*
* details_length is how many (Taler coin) deposits have been
* aggregated into _this_ wire transfer.
- */
- for (unsigned int i = 0; i<details_length; i++)
+ */for (unsigned int i = 0; i<details_length; i++)
{
rctx->current_offset = i;
rctx->current_detail = &details[i];
@@ -1079,4 +1079,5 @@ MH_handler_track_transfer (struct TMH_RequestHandler *rh,
return MHD_YES;
}
+
/* end of taler-merchant-httpd_track-transfer.c */