diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-05-05 15:50:43 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-05-05 15:50:43 +0000 |
commit | ac441ba79538344b252e07444e4059f084610d17 (patch) | |
tree | 36653a204c14bd7fa8d69febae21131763cc0f14 /src | |
parent | eb355f3b7bebbd5771c1332d49281d37f214044f (diff) | |
download | gnunet-ac441ba79538344b252e07444e4059f084610d17.tar.gz gnunet-ac441ba79538344b252e07444e4059f084610d17.zip |
-ignore
Diffstat (limited to 'src')
-rw-r--r-- | src/fs/fs_dirmetascan.c | 5 | ||||
-rw-r--r-- | src/fs/gnunet-helper-fs-publish.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/fs/fs_dirmetascan.c b/src/fs/fs_dirmetascan.c index 4e5354e80..5001b6a14 100644 --- a/src/fs/fs_dirmetascan.c +++ b/src/fs/fs_dirmetascan.c | |||
@@ -257,6 +257,9 @@ process_helper_msgs (void *cls, | |||
257 | const char *filename; | 257 | const char *filename; |
258 | size_t left; | 258 | size_t left; |
259 | 259 | ||
260 | fprintf (stderr, "DMS parses %u-byte message of type %u\n", | ||
261 | (unsigned int) ntohs (msg->size), | ||
262 | (unsigned int) ntohs (msg->type)); | ||
260 | left = ntohs (msg->size) - sizeof (struct GNUNET_MessageHeader); | 263 | left = ntohs (msg->size) - sizeof (struct GNUNET_MessageHeader); |
261 | filename = (const char*) &msg[1]; | 264 | filename = (const char*) &msg[1]; |
262 | switch (ntohs (msg->type)) | 265 | switch (ntohs (msg->type)) |
@@ -325,7 +328,7 @@ process_helper_msgs (void *cls, | |||
325 | NULL, GNUNET_SYSERR, | 328 | NULL, GNUNET_SYSERR, |
326 | GNUNET_FS_DIRSCANNER_ALL_COUNTED); | 329 | GNUNET_FS_DIRSCANNER_ALL_COUNTED); |
327 | ds->pos = ds->toplevel; | 330 | ds->pos = ds->toplevel; |
328 | if (ds->pos->is_directory == GNUNET_YES) | 331 | if (GNUNET_YES == ds->pos->is_directory) |
329 | ds->pos = advance (ds->pos); | 332 | ds->pos = advance (ds->pos); |
330 | return; | 333 | return; |
331 | case GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_META_DATA: | 334 | case GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_META_DATA: |
diff --git a/src/fs/gnunet-helper-fs-publish.c b/src/fs/gnunet-helper-fs-publish.c index b96559cd1..1bcfb37fc 100644 --- a/src/fs/gnunet-helper-fs-publish.c +++ b/src/fs/gnunet-helper-fs-publish.c | |||
@@ -186,6 +186,9 @@ write_message (uint16_t message_type, | |||
186 | { | 186 | { |
187 | struct GNUNET_MessageHeader hdr; | 187 | struct GNUNET_MessageHeader hdr; |
188 | 188 | ||
189 | fprintf (stderr, "Helper sends %u-byte message of type %u\n", | ||
190 | (unsigned int) (sizeof (struct GNUNET_MessageHeader) + data_length), | ||
191 | (unsigned int) message_type); | ||
189 | hdr.type = htons (message_type); | 192 | hdr.type = htons (message_type); |
190 | hdr.size = htons (sizeof (struct GNUNET_MessageHeader) + data_length); | 193 | hdr.size = htons (sizeof (struct GNUNET_MessageHeader) + data_length); |
191 | if ( (GNUNET_OK != | 194 | if ( (GNUNET_OK != |
@@ -338,7 +341,7 @@ extract_files (struct ScanTreeNode *item) | |||
338 | ssize_t size; | 341 | ssize_t size; |
339 | size_t slen; | 342 | size_t slen; |
340 | 343 | ||
341 | if (item->is_directory == GNUNET_YES) | 344 | if (GNUNET_YES == item->is_directory) |
342 | { | 345 | { |
343 | /* for directories, we simply only descent, no extraction, no | 346 | /* for directories, we simply only descent, no extraction, no |
344 | progress reporting */ | 347 | progress reporting */ |