From 4ed6ea74cc5ee8cdb7b31252ea86570be8268dde Mon Sep 17 00:00:00 2001 From: Christophe Genevey Metat Date: Wed, 25 May 2016 16:37:52 +0000 Subject: fix warning compilation libgnunetmy --- src/my/my_result_helper.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/my/my_result_helper.c') diff --git a/src/my/my_result_helper.c b/src/my/my_result_helper.c index f58c8e150..cced22482 100644 --- a/src/my/my_result_helper.c +++ b/src/my/my_result_helper.c @@ -406,7 +406,7 @@ extract_string (void * cls, field = mysql_fetch_field (result); //If it's the correct field - if (field == fname) + if (field->name == fname) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Field '%s' does not exist in result", @@ -504,7 +504,7 @@ extract_uint16 (void *cls, { //TO COMPLETE uint16_t *udst = dst; - const uint16_t *res; + uint16_t *res; MYSQL_ROW rows; MYSQL_FIELD * field; @@ -536,7 +536,7 @@ extract_uint16 (void *cls, return GNUNET_SYSERR; } - res = (uint16_t) rows[row]; + res = atoi (rows[row]); *udst = ntohs (*res); return GNUNET_OK; -- cgit v1.2.3