[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-merchant] branch master updated: Fix indentation.
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-merchant] branch master updated: Fix indentation. |
Date: |
Sun, 19 Mar 2017 17:13:06 +0100 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository merchant.
The following commit(s) were added to refs/heads/master by this push:
new bcde0fa Fix indentation.
bcde0fa is described below
commit bcde0fab44e13ef872eb8c414358e5e4613ee3be
Author: Marcello Stanisci <address@hidden>
AuthorDate: Sun Mar 19 16:49:40 2017 +0100
Fix indentation.
---
src/backenddb/plugin_merchantdb_postgres.c | 88 +++++++++++++++---------------
1 file changed, 44 insertions(+), 44 deletions(-)
diff --git a/src/backenddb/plugin_merchantdb_postgres.c
b/src/backenddb/plugin_merchantdb_postgres.c
index 545d296..8d62057 100644
--- a/src/backenddb/plugin_merchantdb_postgres.c
+++ b/src/backenddb/plugin_merchantdb_postgres.c
@@ -856,52 +856,52 @@ postgres_find_proposal_data_by_date_and_range (void *cls,
result = GNUNET_PQ_exec_prepared (pg->conn,
"find_proposal_data_by_date_and_range",
params);
- if (PGRES_TUPLES_OK != PQresultStatus (result))
- {
- BREAK_DB_ERR (result);
- PQclear (result);
- return GNUNET_SYSERR;
- }
- if (0 == (n = PQntuples (result)) || NULL == cb)
- {
- PQclear (result);
- return n;
- }
- for (i = 0; i < n; i++)
- {
- char *order_id;
- json_t *proposal_data;
- unsigned int row_id;
-
- struct GNUNET_PQ_ResultSpec rs[] = {
- GNUNET_PQ_result_spec_string ("order_id",
- &order_id),
- TALER_PQ_result_spec_json ("proposal_data",
- &proposal_data),
- GNUNET_PQ_result_spec_uint32 ("row_id",
- &row_id),
- GNUNET_PQ_result_spec_end
- };
-
- if (GNUNET_OK !=
- GNUNET_PQ_extract_result (result,
- rs,
- i))
- {
- GNUNET_break (0);
- PQclear (result);
- return GNUNET_SYSERR;
- }
- cb (cb_cls,
- order_id,
- row_id,
- proposal_data);
-
- GNUNET_PQ_cleanup_result (rs);
- }
+ if (PGRES_TUPLES_OK != PQresultStatus (result))
+ {
+ BREAK_DB_ERR (result);
+ PQclear (result);
+ return GNUNET_SYSERR;
+ }
+ if (0 == (n = PQntuples (result)) || NULL == cb)
+ {
+ PQclear (result);
+ return n;
+ }
+ for (i = 0; i < n; i++)
+ {
+ char *order_id;
+ json_t *proposal_data;
+ unsigned int row_id;
+
+ struct GNUNET_PQ_ResultSpec rs[] = {
+ GNUNET_PQ_result_spec_string ("order_id",
+ &order_id),
+ TALER_PQ_result_spec_json ("proposal_data",
+ &proposal_data),
+ GNUNET_PQ_result_spec_uint32 ("row_id",
+ &row_id),
+ GNUNET_PQ_result_spec_end
+ };
+
+ if (GNUNET_OK !=
+ GNUNET_PQ_extract_result (result,
+ rs,
+ i))
+ {
+ GNUNET_break (0);
PQclear (result);
- return n;
+ return GNUNET_SYSERR;
}
+ cb (cb_cls,
+ order_id,
+ row_id,
+ proposal_data);
+
+ GNUNET_PQ_cleanup_result (rs);
+ }
+ PQclear (result);
+ return n;
+}
/**
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-merchant] branch master updated: Fix indentation.,
gnunet <=