summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJonathan Buchanan <jonathan.russ.buchanan@gmail.com>2020-07-24 21:56:08 -0400
committerJonathan Buchanan <jonathan.russ.buchanan@gmail.com>2020-07-24 21:56:08 -0400
commit469ea4f5c7a23ac89965bca8139e17d7bd26b9f0 (patch)
tree03028a74e9642c53e4cc301b393dfd524aaa1b11 /src
parent8631026e39b5dcd10019b0f770bc79cecf1d6fd5 (diff)
downloadmerchant-469ea4f5c7a23ac89965bca8139e17d7bd26b9f0.tar.gz
merchant-469ea4f5c7a23ac89965bca8139e17d7bd26b9f0.tar.bz2
merchant-469ea4f5c7a23ac89965bca8139e17d7bd26b9f0.zip
fix spelling mistakes
Diffstat (limited to 'src')
-rw-r--r--src/backend/taler-merchant-httpd.c12
-rw-r--r--src/backend/taler-merchant-httpd.h4
-rw-r--r--src/backend/taler-merchant-httpd_exchanges.c2
-rw-r--r--src/backend/taler-merchant-httpd_reserves.c2
-rw-r--r--src/backenddb/merchant-0001.sql2
-rw-r--r--src/backenddb/plugin_merchantdb_postgres.c2
-rw-r--r--src/backenddb/test_merchantdb.c12
-rw-r--r--src/include/taler_merchant_service.h2
-rw-r--r--src/lib/merchant_api_get_transfers.c2
9 files changed, 20 insertions, 20 deletions
diff --git a/src/backend/taler-merchant-httpd.c b/src/backend/taler-merchant-httpd.c
index b6cb1cc4..75a4cf4d 100644
--- a/src/backend/taler-merchant-httpd.c
+++ b/src/backend/taler-merchant-httpd.c
@@ -1115,7 +1115,7 @@ url_handler (void *cls,
{
/* Client exceeds upload limit. Should _usually_ be checked earlier
when we look at the MHD_HTTP_HEADER_CONTENT_LENGTH, alas with
- chunked encoding an uploader MAY have ommitted this, and thus
+ chunked encoding an uploader MAY have omitted this, and thus
not permitted us to check on time. In this case, we just close
the connection once it exceeds our limit (instead of waiting
for the upload to complete and then fail). This could theoretically
@@ -1299,28 +1299,28 @@ url_handler (void *cls,
continue; /* too many segments to match */
if ( (NULL == infix_url)
^ (NULL == rh->url_suffix) )
- continue; /* suffix existence missmatch */
+ continue; /* suffix existence mismatch */
if ( (NULL != infix_url) &&
( (infix_strlen != strlen (rh->url_suffix)) ||
(0 != memcmp (infix_url,
rh->url_suffix,
infix_strlen)) ) )
- continue; /* cannot use infix as suffix: content missmatch */
+ continue; /* cannot use infix as suffix: content mismatch */
}
else
{
if ( (NULL == infix_url)
^ (GNUNET_NO == rh->have_id_segment) )
- continue; /* infix existence missmatch */
+ continue; /* infix existence mismatch */
if ( ( (NULL == suffix_url)
^ (NULL == rh->url_suffix) ) )
- continue; /* suffix existence missmatch */
+ continue; /* suffix existence mismatch */
if ( (NULL != suffix_url) &&
( (suffix_strlen != strlen (rh->url_suffix)) ||
(0 != memcmp (suffix_url,
rh->url_suffix,
suffix_strlen)) ) )
- continue; /* suffix content missmatch */
+ continue; /* suffix content mismatch */
}
url_found = true;
if (0 == strcasecmp (method,
diff --git a/src/backend/taler-merchant-httpd.h b/src/backend/taler-merchant-httpd.h
index f4c1b64b..8ee900b3 100644
--- a/src/backend/taler-merchant-httpd.h
+++ b/src/backend/taler-merchant-httpd.h
@@ -148,7 +148,7 @@ struct TMH_RequestHandler;
/**
* This information is stored in the "connection_cls" of MHD for
* every request that we process.
- * Individual handlers can evaluate tis memebers and
+ * Individual handlers can evaluate its members and
* are allowed to update @e cc and @e ctx to store and clean up
* handler-specific data.
*/
@@ -253,7 +253,7 @@ typedef void
/**
* This information is stored in the "connection_cls" of MHD for
* every request that we process.
- * Individual handlers can evaluate tis memebers and
+ * Individual handlers can evaluate its members and
* are allowed to update @e cc and @e ctx to store and clean up
* handler-specific data.
*/
diff --git a/src/backend/taler-merchant-httpd_exchanges.c b/src/backend/taler-merchant-httpd_exchanges.c
index c31ce46f..721c10e3 100644
--- a/src/backend/taler-merchant-httpd_exchanges.c
+++ b/src/backend/taler-merchant-httpd_exchanges.c
@@ -1034,7 +1034,7 @@ TMH_EXCHANGES_find_exchange (const char *chosen_exchange,
/* increment exponential-backoff */
exchange->retry_delay = RETRY_BACKOFF (exchange->retry_delay);
/* do not allow forced check until both backoff and #FORCED_RELOAD_DELAY
- are satisified again */
+ are satisfied again */
exchange->first_retry
= GNUNET_TIME_relative_to_absolute (GNUNET_TIME_relative_max (
exchange->retry_delay,
diff --git a/src/backend/taler-merchant-httpd_reserves.c b/src/backend/taler-merchant-httpd_reserves.c
index 172b6f9f..1a2e1aa9 100644
--- a/src/backend/taler-merchant-httpd_reserves.c
+++ b/src/backend/taler-merchant-httpd_reserves.c
@@ -48,7 +48,7 @@ struct Reserve
/**
* Amount the merchant expects to see in the reserve initially.
- * We log a warning if there is a missmatch.
+ * We log a warning if there is a mismatch.
*/
struct TALER_Amount expected_amount;
diff --git a/src/backenddb/merchant-0001.sql b/src/backenddb/merchant-0001.sql
index e55ea022..f26cd5a8 100644
--- a/src/backenddb/merchant-0001.sql
+++ b/src/backenddb/merchant-0001.sql
@@ -150,7 +150,7 @@ COMMENT ON COLUMN merchant_inventory.taxes
COMMENT ON COLUMN merchant_inventory.price_val
IS 'Current price of one unit of the product';
COMMENT ON COLUMN merchant_inventory.total_stock
- IS 'A value of -1 is used for unlimited (eletronic good), may never be lowered';
+ IS 'A value of -1 is used for unlimited (electronic good), may never be lowered';
COMMENT ON COLUMN merchant_inventory.total_sold
IS 'Number of products sold, must be below total_stock, non-negative, may never be lowered';
COMMENT ON COLUMN merchant_inventory.total_lost
diff --git a/src/backenddb/plugin_merchantdb_postgres.c b/src/backenddb/plugin_merchantdb_postgres.c
index 8d4db04b..84e1bceb 100644
--- a/src/backenddb/plugin_merchantdb_postgres.c
+++ b/src/backenddb/plugin_merchantdb_postgres.c
@@ -4441,7 +4441,7 @@ struct LookupReservesContext
enum TALER_EXCHANGE_YesNoAll active;
/**
- * Filter by failures (missmatch in exchange claimed and
+ * Filter by failures (mismatch in exchange claimed and
* merchant claimed initial amounts).
*/
enum TALER_EXCHANGE_YesNoAll failures;
diff --git a/src/backenddb/test_merchantdb.c b/src/backenddb/test_merchantdb.c
index 81f66b25..12391d1d 100644
--- a/src/backenddb/test_merchantdb.c
+++ b/src/backenddb/test_merchantdb.c
@@ -467,7 +467,7 @@ test_insert_account (const struct InstanceData *instance,
/**
* Tests deactivating an account.
*
- * @param account the account to inactivate.
+ * @param account the account to deactivate.
* @param expected_result the result expected from the plugin.
* @return 0 on success, 1 otherwise.
*/
@@ -478,7 +478,7 @@ test_inactivate_account (const struct TALER_MERCHANTDB_AccountDetails *account,
TEST_COND_RET_ON_FAIL (expected_result ==
plugin->inactivate_account (plugin->cls,
&account->h_wire),
- "Inactivate account failed\n");
+ "Deactivate account failed\n");
return 0;
}
@@ -611,7 +611,7 @@ run_test_instances (struct TestInstances_Closure *cls)
TEST_RET_ON_FAIL (test_lookup_instances (false,
1,
instances));
- /* Test inactivate account */
+ /* Test deactivate account */
TEST_RET_ON_FAIL (test_inactivate_account (&cls->accounts[0],
GNUNET_DB_STATUS_SUCCESS_ONE_RESULT));
TEST_RET_ON_FAIL (test_inactivate_account (&cls->accounts[1],
@@ -2918,7 +2918,7 @@ get_deposit_serial_cb (void *cls,
/**
- * Convenience function to retrive the row number of a deposit in the database.
+ * Convenience function to retrieve the row number of a deposit in the database.
*
* @param instance the instance to get deposits from.
* @param order the order associated with the deposit.
@@ -3648,7 +3648,7 @@ struct TestLookupTransferDetailsByOrder_Closure
* @param cls pointer to 'TestLookupTransferDetailsByOrder_Closure'.
* @param wtid identifier of the transfer found.
* @param exchange_url exchange url of the transfer found.
- * @param execution_time when the transfer found occured.
+ * @param execution_time when the transfer found occurred.
* @param deposit_value amount of the deposit for the transfer found.
* @param deposit_fee amount of the fee for the deposit of the transfer.
* @param transfer_confirmed whether the transfer was confirmed.
@@ -5684,7 +5684,7 @@ test_lookup_refunds (const struct InstanceData *instance,
struct RefundData
{
/**
- * When the refund occured.
+ * When the refund occurred.
*/
struct GNUNET_TIME_Absolute timestamp;
diff --git a/src/include/taler_merchant_service.h b/src/include/taler_merchant_service.h
index 9a7ceb39..189d314c 100644
--- a/src/include/taler_merchant_service.h
+++ b/src/include/taler_merchant_service.h
@@ -2482,7 +2482,7 @@ typedef void
* #GNUNET_TIME_UNIT_FOREVER_ABS to not filter by @a before
* @param after limit to transactions after this timestamp, use
* #GNUNET_TIME_UNIT_ZERO_ABS to not filter by @a after
- * @param limit return at most ths number of results; negative to descend in execution time
+ * @param limit return at most this number of results; negative to descend in execution time
* @param offset start at this "credit serial" number (exclusive)
* @param verified filter results by verification status
* @param cb the callback to call when a reply for this request is available
diff --git a/src/lib/merchant_api_get_transfers.c b/src/lib/merchant_api_get_transfers.c
index 34d043fa..fe1d14b0 100644
--- a/src/lib/merchant_api_get_transfers.c
+++ b/src/lib/merchant_api_get_transfers.c
@@ -236,7 +236,7 @@ handle_transfers_get_finished (void *cls,
* #GNUNET_TIME_UNIT_FOREVER_ABS to not filter by @a before
* @param after limit to transactions after this timestamp, use
* #GNUNET_TIME_UNIT_ZERO_ABS to not filter by @a after
- * @param limit return at most ths number of results; negative to descend in execution time
+ * @param limit return at most this number of results; negative to descend in execution time
* @param offset start at this "credit serial" number (exclusive)
* @param verified filter results by verification status
* @param cb the callback to call when a reply for this request is available