diff options
author | Christophe Genevey Metat <genevey.christophe@gmail.com> | 2016-05-25 16:37:52 +0000 |
---|---|---|
committer | Christophe Genevey Metat <genevey.christophe@gmail.com> | 2016-05-25 16:37:52 +0000 |
commit | 4ed6ea74cc5ee8cdb7b31252ea86570be8268dde (patch) | |
tree | 3dd5bb385d97b3d3e5717073adbe1397d5b971f5 /src/my/my_result_helper.c | |
parent | 0623fdd510f1dacd25f1b8ff592ff6de038c51dc (diff) | |
download | gnunet-4ed6ea74cc5ee8cdb7b31252ea86570be8268dde.tar.gz gnunet-4ed6ea74cc5ee8cdb7b31252ea86570be8268dde.zip |
fix warning compilation libgnunetmy
Diffstat (limited to 'src/my/my_result_helper.c')
-rw-r--r-- | src/my/my_result_helper.c | 6 |
1 files changed, 3 insertions, 3 deletions
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, | |||
406 | field = mysql_fetch_field (result); | 406 | field = mysql_fetch_field (result); |
407 | 407 | ||
408 | //If it's the correct field | 408 | //If it's the correct field |
409 | if (field == fname) | 409 | if (field->name == fname) |
410 | { | 410 | { |
411 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 411 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
412 | "Field '%s' does not exist in result", | 412 | "Field '%s' does not exist in result", |
@@ -504,7 +504,7 @@ extract_uint16 (void *cls, | |||
504 | { | 504 | { |
505 | //TO COMPLETE | 505 | //TO COMPLETE |
506 | uint16_t *udst = dst; | 506 | uint16_t *udst = dst; |
507 | const uint16_t *res; | 507 | uint16_t *res; |
508 | 508 | ||
509 | MYSQL_ROW rows; | 509 | MYSQL_ROW rows; |
510 | MYSQL_FIELD * field; | 510 | MYSQL_FIELD * field; |
@@ -536,7 +536,7 @@ extract_uint16 (void *cls, | |||
536 | return GNUNET_SYSERR; | 536 | return GNUNET_SYSERR; |
537 | } | 537 | } |
538 | 538 | ||
539 | res = (uint16_t) rows[row]; | 539 | res = atoi (rows[row]); |
540 | *udst = ntohs (*res); | 540 | *udst = ntohs (*res); |
541 | 541 | ||
542 | return GNUNET_OK; | 542 | return GNUNET_OK; |