diff options
Diffstat (limited to 'src/gns/gnunet-gns-add.c')
-rw-r--r-- | src/gns/gnunet-gns-add.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/gns/gnunet-gns-add.c b/src/gns/gnunet-gns-add.c index bc4843a96..bb1d7e1f4 100644 --- a/src/gns/gnunet-gns-add.c +++ b/src/gns/gnunet-gns-add.c | |||
@@ -134,9 +134,6 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
134 | else if (verbose) | 134 | else if (verbose) |
135 | FPRINTF (stderr, _("Connected to %s service!\n"), "GNS"); | 135 | FPRINTF (stderr, _("Connected to %s service!\n"), "GNS"); |
136 | 136 | ||
137 | if (query_type == GNUNET_BLOCK_TYPE_ANY) /* Type of data not set */ | ||
138 | query_type = GNUNET_BLOCK_TYPE_TEST; | ||
139 | |||
140 | timeout = | 137 | timeout = |
141 | GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, timeout_request); | 138 | GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, timeout_request); |
142 | expiration = | 139 | expiration = |
@@ -147,9 +144,8 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
147 | if (verbose) | 144 | if (verbose) |
148 | FPRINTF (stderr, _("Issuing add request for `%s' with data `%s'!\n"), | 145 | FPRINTF (stderr, _("Issuing add request for `%s' with data `%s'!\n"), |
149 | record_key, data); | 146 | record_key, data); |
150 | GNUNET_GNS_add (gns_handle, &record_key, replication, GNUNET_DHT_RO_NONE, record_type, | 147 | GNUNET_GNS_add_record (gns_handle, &record_key, record_type, |
151 | strlen (data), data, expiration, timeout, &message_sent_cont, | 148 | strlen (data), data, expiration, timeout); |
152 | NULL); | ||
153 | 149 | ||
154 | } | 150 | } |
155 | 151 | ||