gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-exchange] 04/06: start_row is actually start in the


From: gnunet
Subject: [GNUnet-SVN] [taler-exchange] 04/06: start_row is actually start in the spec, fix naming
Date: Tue, 16 May 2017 11:05:15 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository exchange.

commit bdfa18830d12ed99fee8d79f48d2ab0ba52c567e
Author: Christian Grothoff <address@hidden>
AuthorDate: Mon May 15 20:33:02 2017 +0200

    start_row is actually start in the spec, fix naming
---
 src/bank-lib/bank_api_history.c | 4 ++--
 src/bank-lib/fakebank.c         | 2 +-
 src/bank-lib/test_bank_api.c    | 4 ----
 3 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/src/bank-lib/bank_api_history.c b/src/bank-lib/bank_api_history.c
index 87619e7..e134f20 100644
--- a/src/bank-lib/bank_api_history.c
+++ b/src/bank-lib/bank_api_history.c
@@ -273,13 +273,13 @@ TALER_BANK_history (struct GNUNET_CURL_Context *ctx,
   {
     if (TALER_BANK_DIRECTION_BOTH == direction)
       GNUNET_asprintf (&url,
-                       
"/history?auth=basic&account_number=%llu&delta=%lld&start_row=%llu",
+                       
"/history?auth=basic&account_number=%llu&delta=%lld&start=%llu",
                        (unsigned long long) account_number,
                        (long long) num_results,
                        (unsigned long long) start_row);
     else
       GNUNET_asprintf (&url,
-                       
"/history?auth=basic&account_number=%llu&delta=%lld&start_row=%llu&direction=%s",
+                       
"/history?auth=basic&account_number=%llu&delta=%lld&start=%llu&direction=%s",
                        (unsigned long long) account_number,
                        (long long) num_results,
                        (unsigned long long) start_row,
diff --git a/src/bank-lib/fakebank.c b/src/bank-lib/fakebank.c
index 8d16567..813d5b2 100644
--- a/src/bank-lib/fakebank.c
+++ b/src/bank-lib/fakebank.c
@@ -425,7 +425,7 @@ handle_history (struct TALER_FAKEBANK_Handle *h,
                                      "direction");
   start = MHD_lookup_connection_value (connection,
                                        MHD_GET_ARGUMENT_KIND,
-                                       "start_row");
+                                       "start");
   acc = MHD_lookup_connection_value (connection,
                                      MHD_GET_ARGUMENT_KIND,
                                      "account_number");
diff --git a/src/bank-lib/test_bank_api.c b/src/bank-lib/test_bank_api.c
index 9904f37..131d655 100644
--- a/src/bank-lib/test_bank_api.c
+++ b/src/bank-lib/test_bank_api.c
@@ -62,7 +62,6 @@ run (void *cls)
       .details.admin_add_incoming.credit_account_no = 1,
       .details.admin_add_incoming.debit_account_no = 2, /* Ignored */
       .details.admin_add_incoming.amount = "KUDOS:5.01" },
-    #if 0
     /* Ask Exchange's incoming history */
     { .oc = TBI_OC_HISTORY,
       .label = "history-1c",
@@ -70,7 +69,6 @@ run (void *cls)
       .details.history.direction = TALER_BANK_DIRECTION_CREDIT,
       .details.history.start_row_ref = NULL,
       .details.history.num_results = 5 },
-    #endif
     /* Ask Exchange's outgoing history, 5 records into the future?? */
     { .oc = TBI_OC_HISTORY,
       .label = "history-2d",
@@ -78,7 +76,6 @@ run (void *cls)
       .details.history.direction = TALER_BANK_DIRECTION_DEBIT,
       .details.history.start_row_ref = NULL,
       .details.history.num_results = 5 },
-    # if 0
     /* Ask Exchange's outgoing history, last 5 records */
     { .oc = TBI_OC_HISTORY,
       .label = "history-2dr",
@@ -92,7 +89,6 @@ run (void *cls)
       .details.history.direction = TALER_BANK_DIRECTION_DEBIT,
       .details.history.start_row_ref = "deposit-1",
       .details.history.num_results = 5 },
-  #endif
     { .oc = TBI_OC_END }
   };
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]