diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-10-06 10:04:41 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-10-06 10:04:41 +0000 |
commit | 8f092bda5144daeff7fd1735a1f49d50a7a1d027 (patch) | |
tree | 3c1e15f98da39718b81179d1a679e6d0836dcc9f /src/datastore | |
parent | 7fb21027ff8726fec229ef0a55b84263be0c18d0 (diff) | |
download | gnunet-8f092bda5144daeff7fd1735a1f49d50a7a1d027.tar.gz gnunet-8f092bda5144daeff7fd1735a1f49d50a7a1d027.zip |
fix
Diffstat (limited to 'src/datastore')
-rw-r--r-- | src/datastore/plugin_datastore_mysql.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/datastore/plugin_datastore_mysql.c b/src/datastore/plugin_datastore_mysql.c index 4e5d8f9b0..150dc665c 100644 --- a/src/datastore/plugin_datastore_mysql.c +++ b/src/datastore/plugin_datastore_mysql.c | |||
@@ -663,7 +663,7 @@ init_params (struct Plugin *plugin, | |||
663 | memset (qbind, 0, sizeof (qbind)); | 663 | memset (qbind, 0, sizeof (qbind)); |
664 | off = 0; | 664 | off = 0; |
665 | ft = 0; | 665 | ft = 0; |
666 | while ((pc > 0) && (-1 != (ft = va_arg (ap, enum enum_field_types)))) | 666 | while ((pc > 0) && (-1 != (int) (ft = va_arg (ap, enum enum_field_types)))) |
667 | { | 667 | { |
668 | qbind[off].buffer_type = ft; | 668 | qbind[off].buffer_type = ft; |
669 | switch (ft) | 669 | switch (ft) |
@@ -694,7 +694,7 @@ init_params (struct Plugin *plugin, | |||
694 | pc--; | 694 | pc--; |
695 | off++; | 695 | off++; |
696 | } | 696 | } |
697 | if (!((pc == 0) && (ft != -1) && (va_arg (ap, int) == -1))) | 697 | if (! ( (pc == 0) && (-1 != (int) ft) && (va_arg (ap, int) == -1) ) ) |
698 | { | 698 | { |
699 | GNUNET_break (0); | 699 | GNUNET_break (0); |
700 | return GNUNET_SYSERR; | 700 | return GNUNET_SYSERR; |