aboutsummaryrefslogtreecommitdiff
path: root/src/my/my_query_helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/my/my_query_helper.c')
-rw-r--r--src/my/my_query_helper.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/my/my_query_helper.c b/src/my/my_query_helper.c
index 4ea1b4ffe..6bbbf0b51 100644
--- a/src/my/my_query_helper.c
+++ b/src/my/my_query_helper.c
@@ -106,8 +106,9 @@ my_conv_uint16 (void *cls,
106 if (NULL == u_nbo) 106 if (NULL == u_nbo)
107 return -1; 107 return -1;
108 108
109 *u_nbo = htons (*u_hbo); 109// *u_nbo = htons (*u_hbo);
110 110 *u_nbo = *u_hbo;
111
111 qbind->buffer = (void *) u_nbo; 112 qbind->buffer = (void *) u_nbo;
112 qbind->buffer_length = sizeof(uint16_t); 113 qbind->buffer_length = sizeof(uint16_t);
113 qbind->buffer_type = MYSQL_TYPE_SHORT; 114 qbind->buffer_type = MYSQL_TYPE_SHORT;
@@ -153,7 +154,8 @@ my_conv_uint32 (void *cls,
153 GNUNET_assert (1 == qp->num_params); 154 GNUNET_assert (1 == qp->num_params);
154 155
155 u_nbo = GNUNET_new (uint32_t); 156 u_nbo = GNUNET_new (uint32_t);
156 *u_nbo = htonl (*u_hbo); 157// *u_nbo = htonl (*u_hbo);
158 *u_nbo = *u_hbo;
157 159
158 qbind->buffer = (void *) u_nbo; 160 qbind->buffer = (void *) u_nbo;
159 qbind->buffer_length = sizeof(uint32_t); 161 qbind->buffer_length = sizeof(uint32_t);
@@ -200,7 +202,8 @@ my_conv_uint64 (void *cls,
200 GNUNET_assert (1 == qp->num_params); 202 GNUNET_assert (1 == qp->num_params);
201 203
202 u_nbo = GNUNET_new(uint64_t); 204 u_nbo = GNUNET_new(uint64_t);
203 *u_nbo = GNUNET_htonll (*u_hbo); 205 //*u_nbo = GNUNET_htonll (*u_hbo);
206 *u_nbo = *u_hbo;
204 207
205 qbind->buffer = (void *) u_nbo; 208 qbind->buffer = (void *) u_nbo;
206 qbind->buffer_length = sizeof (uint64_t); 209 qbind->buffer_length = sizeof (uint64_t);