aboutsummaryrefslogtreecommitdiff
path: root/src/dht/gnunet-dht-put.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-09-14 08:19:23 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-09-14 08:19:23 +0000
commit98c78bdc4d47e725c548998e3416f5bedc3b9887 (patch)
tree25abdf6b839c0fbfdd18de460db72ac3c61baae1 /src/dht/gnunet-dht-put.c
parent26505f887e0ff7ed3c84ba6db3b7abf1acc039f5 (diff)
downloadgnunet-98c78bdc4d47e725c548998e3416f5bedc3b9887.tar.gz
gnunet-98c78bdc4d47e725c548998e3416f5bedc3b9887.zip
- print key when put
Diffstat (limited to 'src/dht/gnunet-dht-put.c')
-rw-r--r--src/dht/gnunet-dht-put.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/dht/gnunet-dht-put.c b/src/dht/gnunet-dht-put.c
index 155e1f7d3..f1d8fb56e 100644
--- a/src/dht/gnunet-dht-put.c
+++ b/src/dht/gnunet-dht-put.c
@@ -32,6 +32,11 @@
32static unsigned int query_type; 32static unsigned int query_type;
33 33
34/** 34/**
35 * The key used in the DHT
36 */
37struct GNUNET_HashCode key;
38
39/**
35 * The key for the query 40 * The key for the query
36 */ 41 */
37static char *query_key; 42static char *query_key;
@@ -105,7 +110,7 @@ message_sent_cont (void *cls, int success)
105 switch (success) 110 switch (success)
106 { 111 {
107 case GNUNET_OK: 112 case GNUNET_OK:
108 FPRINTF (stderr, "%s", _("PUT request sent!\n")); 113 FPRINTF (stderr, "%s `%s'!\n", _("PUT request sent with key"), GNUNET_h2s_full(&key));
109 break; 114 break;
110 case GNUNET_NO: 115 case GNUNET_NO:
111 FPRINTF (stderr, "%s", _("Timeout sending PUT request!\n")); 116 FPRINTF (stderr, "%s", _("Timeout sending PUT request!\n"));
@@ -135,7 +140,6 @@ run (void *cls, char *const *args, const char *cfgfile,
135{ 140{
136 struct GNUNET_TIME_Relative timeout; 141 struct GNUNET_TIME_Relative timeout;
137 struct GNUNET_TIME_Absolute expiration; 142 struct GNUNET_TIME_Absolute expiration;
138 struct GNUNET_HashCode key;
139 143
140 cfg = c; 144 cfg = c;
141 145