diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2022-10-21 13:48:01 +0900 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2022-10-21 13:48:01 +0900 |
commit | bb49aa0110c5648e9eaae0f013fc5a05f7156862 (patch) | |
tree | 355fcfded84a5dd404e49b574274bff6fd4f96e5 /src/zonemaster/gnunet-service-zonemaster.c | |
parent | b00f4f30d94015acde0599711bf8056855b2de97 (diff) | |
download | gnunet-bb49aa0110c5648e9eaae0f013fc5a05f7156862.tar.gz gnunet-bb49aa0110c5648e9eaae0f013fc5a05f7156862.zip |
-fix warnings
Diffstat (limited to 'src/zonemaster/gnunet-service-zonemaster.c')
-rw-r--r-- | src/zonemaster/gnunet-service-zonemaster.c | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/src/zonemaster/gnunet-service-zonemaster.c b/src/zonemaster/gnunet-service-zonemaster.c index 4cf5e690a..220cf1f99 100644 --- a/src/zonemaster/gnunet-service-zonemaster.c +++ b/src/zonemaster/gnunet-service-zonemaster.c | |||
@@ -412,7 +412,7 @@ shutdown_task (void *cls) | |||
412 | struct OpenSignJob *job; | 412 | struct OpenSignJob *job; |
413 | 413 | ||
414 | (void) cls; | 414 | (void) cls; |
415 | in_shutdown == GNUNET_YES; | 415 | in_shutdown = GNUNET_YES; |
416 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 416 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
417 | "Shutting down!\n"); | 417 | "Shutting down!\n"); |
418 | if (NULL != notification_pipe) | 418 | if (NULL != notification_pipe) |
@@ -820,11 +820,9 @@ perform_dht_put (const struct GNUNET_IDENTITY_PrivateKey *key, | |||
820 | struct GNUNET_GNSRECORD_Data rd_public[rd_count]; | 820 | struct GNUNET_GNSRECORD_Data rd_public[rd_count]; |
821 | struct GNUNET_GNSRECORD_Block *block; | 821 | struct GNUNET_GNSRECORD_Block *block; |
822 | struct GNUNET_GNSRECORD_Block *block_priv; | 822 | struct GNUNET_GNSRECORD_Block *block_priv; |
823 | struct GNUNET_HashCode query; | ||
824 | struct GNUNET_TIME_Absolute expire_pub; | 823 | struct GNUNET_TIME_Absolute expire_pub; |
825 | size_t block_size; | 824 | size_t block_size; |
826 | unsigned int rd_public_count = 0; | 825 | unsigned int rd_public_count = 0; |
827 | struct GNUNET_DHT_PutHandle *ret; | ||
828 | char *emsg; | 826 | char *emsg; |
829 | 827 | ||
830 | if (GNUNET_OK != | 828 | if (GNUNET_OK != |
@@ -1136,25 +1134,6 @@ publish_zone_dht_start (void *cls) | |||
1136 | 1134 | ||
1137 | 1135 | ||
1138 | /** | 1136 | /** |
1139 | * Continuation called from DHT once the PUT operation triggered | ||
1140 | * by a monitor is done. | ||
1141 | * | ||
1142 | * @param cls a `struct DhtPutActivity` | ||
1143 | */ | ||
1144 | static void | ||
1145 | dht_put_monitor_continuation (void *cls) | ||
1146 | { | ||
1147 | struct DhtPutActivity *ma = cls; | ||
1148 | |||
1149 | ma_queue_length--; | ||
1150 | GNUNET_CONTAINER_DLL_remove (ma_head, | ||
1151 | ma_tail, | ||
1152 | ma); | ||
1153 | GNUNET_free (ma); | ||
1154 | } | ||
1155 | |||
1156 | |||
1157 | /** | ||
1158 | * Store GNS records in the DHT. | 1137 | * Store GNS records in the DHT. |
1159 | * | 1138 | * |
1160 | * @param key key of the zone | 1139 | * @param key key of the zone |
@@ -1175,11 +1154,9 @@ perform_dht_put_monitor (const struct GNUNET_IDENTITY_PrivateKey *key, | |||
1175 | struct GNUNET_GNSRECORD_Data rd_public[rd_count]; | 1154 | struct GNUNET_GNSRECORD_Data rd_public[rd_count]; |
1176 | struct GNUNET_GNSRECORD_Block *block; | 1155 | struct GNUNET_GNSRECORD_Block *block; |
1177 | struct GNUNET_GNSRECORD_Block *block_priv; | 1156 | struct GNUNET_GNSRECORD_Block *block_priv; |
1178 | struct GNUNET_HashCode query; | ||
1179 | struct GNUNET_TIME_Absolute expire_pub; | 1157 | struct GNUNET_TIME_Absolute expire_pub; |
1180 | size_t block_size; | 1158 | size_t block_size; |
1181 | unsigned int rd_public_count = 0; | 1159 | unsigned int rd_public_count = 0; |
1182 | struct GNUNET_DHT_PutHandle *ret; | ||
1183 | char *emsg; | 1160 | char *emsg; |
1184 | 1161 | ||
1185 | if (GNUNET_OK != | 1162 | if (GNUNET_OK != |