aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-07-18 06:57:03 +0000
committerChristian Grothoff <christian@grothoff.org>2011-07-18 06:57:03 +0000
commitd45aef1b28d11a5cd9d8d047f84603dbdeef93a6 (patch)
tree558bf3687ed7ac7b4543bad8087f7652d99966c2 /src
parent311bdea2c58c1e4c4d4eddafca1b297c86cb2d3b (diff)
downloadgnunet-d45aef1b28d11a5cd9d8d047f84603dbdeef93a6.tar.gz
gnunet-d45aef1b28d11a5cd9d8d047f84603dbdeef93a6.zip
dce
Diffstat (limited to 'src')
-rw-r--r--src/dht/plugin_dhtlog_mysql.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/dht/plugin_dhtlog_mysql.c b/src/dht/plugin_dhtlog_mysql.c
index bcedee1ef..8e4357b1c 100644
--- a/src/dht/plugin_dhtlog_mysql.c
+++ b/src/dht/plugin_dhtlog_mysql.c
@@ -686,7 +686,6 @@ get_node_uid (unsigned long long *nodeuid, const GNUNET_HashCode * peerHash)
686 struct GNUNET_CRYPTO_HashAsciiEncoded encPeer; 686 struct GNUNET_CRYPTO_HashAsciiEncoded encPeer;
687 unsigned long long p_len; 687 unsigned long long p_len;
688 688
689 int ret;
690 memset (rbind, 0, sizeof (rbind)); 689 memset (rbind, 0, sizeof (rbind));
691 rbind[0].buffer_type = MYSQL_TYPE_LONGLONG; 690 rbind[0].buffer_type = MYSQL_TYPE_LONGLONG;
692 rbind[0].buffer = nodeuid; 691 rbind[0].buffer = nodeuid;
@@ -695,7 +694,7 @@ get_node_uid (unsigned long long *nodeuid, const GNUNET_HashCode * peerHash)
695 GNUNET_CRYPTO_hash_to_enc (peerHash, &encPeer); 694 GNUNET_CRYPTO_hash_to_enc (peerHash, &encPeer);
696 p_len = strlen ((char *) &encPeer); 695 p_len = strlen ((char *) &encPeer);
697 696
698 if (1 != (ret = prepared_statement_run_select (get_nodeuid, 697 if (1 != prepared_statement_run_select (get_nodeuid,
699 1, 698 1,
700 rbind, 699 rbind,
701 return_ok, 700 return_ok,
@@ -706,7 +705,7 @@ get_node_uid (unsigned long long *nodeuid, const GNUNET_HashCode * peerHash)
706 MYSQL_TYPE_VAR_STRING, 705 MYSQL_TYPE_VAR_STRING,
707 &encPeer, 706 &encPeer,
708 max_varchar_len, 707 max_varchar_len,
709 &p_len, -1))) 708 &p_len, -1))
710 { 709 {
711#if DEBUG_DHTLOG 710#if DEBUG_DHTLOG
712 fprintf (stderr, "FAILED\n"); 711 fprintf (stderr, "FAILED\n");