aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-07-21 16:27:55 +0200
committerChristian Grothoff <christian@grothoff.org>2021-07-21 16:28:01 +0200
commitee7b00389ed9f801ec7fb3d9d729abe9a6e47bb1 (patch)
treed3c35989be84f5c1b6bf73dc84024ac3195b3638
parentfe829dd7655d9f64a570e186831e80dfb2850d96 (diff)
downloadgnunet-ee7b00389ed9f801ec7fb3d9d729abe9a6e47bb1.tar.gz
gnunet-ee7b00389ed9f801ec7fb3d9d729abe9a6e47bb1.zip
-de-deprecate
-rw-r--r--src/include/gnunet_pq_lib.h3
-rw-r--r--src/pq/pq.c6
2 files changed, 3 insertions, 6 deletions
diff --git a/src/include/gnunet_pq_lib.h b/src/include/gnunet_pq_lib.h
index d7fa793ca..2cecb9885 100644
--- a/src/include/gnunet_pq_lib.h
+++ b/src/include/gnunet_pq_lib.h
@@ -527,9 +527,8 @@ GNUNET_PQ_exec_prepared (struct GNUNET_PQ_Context *db,
527 * @return 527 * @return
528 * #GNUNET_YES if all results could be extracted 528 * #GNUNET_YES if all results could be extracted
529 * #GNUNET_SYSERR if a result was invalid (non-existing field) 529 * #GNUNET_SYSERR if a result was invalid (non-existing field)
530 * @deprecated (should become an internal API)
531 */ 530 */
532int 531enum GNUNET_GenericReturnValue
533GNUNET_PQ_extract_result (PGresult *result, 532GNUNET_PQ_extract_result (PGresult *result,
534 struct GNUNET_PQ_ResultSpec *rs, 533 struct GNUNET_PQ_ResultSpec *rs,
535 int row); 534 int row);
diff --git a/src/pq/pq.c b/src/pq/pq.c
index 356472fa3..0b6ef8729 100644
--- a/src/pq/pq.c
+++ b/src/pq/pq.c
@@ -123,16 +123,14 @@ GNUNET_PQ_cleanup_result (struct GNUNET_PQ_ResultSpec *rs)
123} 123}
124 124
125 125
126int 126enum GNUNET_GenericReturnValue
127GNUNET_PQ_extract_result (PGresult *result, 127GNUNET_PQ_extract_result (PGresult *result,
128 struct GNUNET_PQ_ResultSpec *rs, 128 struct GNUNET_PQ_ResultSpec *rs,
129 int row) 129 int row)
130{ 130{
131 unsigned int i;
132
133 if (NULL == result) 131 if (NULL == result)
134 return GNUNET_SYSERR; 132 return GNUNET_SYSERR;
135 for (i = 0; NULL != rs[i].conv; i++) 133 for (unsigned int i = 0; NULL != rs[i].conv; i++)
136 { 134 {
137 struct GNUNET_PQ_ResultSpec *spec; 135 struct GNUNET_PQ_ResultSpec *spec;
138 enum GNUNET_GenericReturnValue ret; 136 enum GNUNET_GenericReturnValue ret;