aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-05-05 15:50:43 +0000
committerChristian Grothoff <christian@grothoff.org>2012-05-05 15:50:43 +0000
commitac441ba79538344b252e07444e4059f084610d17 (patch)
tree36653a204c14bd7fa8d69febae21131763cc0f14 /src
parenteb355f3b7bebbd5771c1332d49281d37f214044f (diff)
-ignore
Diffstat (limited to 'src')
-rw-r--r--src/fs/fs_dirmetascan.c5
-rw-r--r--src/fs/gnunet-helper-fs-publish.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/src/fs/fs_dirmetascan.c b/src/fs/fs_dirmetascan.c
index 4e5354e802..5001b6a140 100644
--- a/src/fs/fs_dirmetascan.c
+++ b/src/fs/fs_dirmetascan.c
@@ -257,6 +257,9 @@ process_helper_msgs (void *cls,
const char *filename;
size_t left;
+ fprintf (stderr, "DMS parses %u-byte message of type %u\n",
+ (unsigned int) ntohs (msg->size),
+ (unsigned int) ntohs (msg->type));
left = ntohs (msg->size) - sizeof (struct GNUNET_MessageHeader);
filename = (const char*) &msg[1];
switch (ntohs (msg->type))
@@ -325,7 +328,7 @@ process_helper_msgs (void *cls,
NULL, GNUNET_SYSERR,
GNUNET_FS_DIRSCANNER_ALL_COUNTED);
ds->pos = ds->toplevel;
- if (ds->pos->is_directory == GNUNET_YES)
+ if (GNUNET_YES == ds->pos->is_directory)
ds->pos = advance (ds->pos);
return;
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 b96559cd14..1bcfb37fcb 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,
{
struct GNUNET_MessageHeader hdr;
+ fprintf (stderr, "Helper sends %u-byte message of type %u\n",
+ (unsigned int) (sizeof (struct GNUNET_MessageHeader) + data_length),
+ (unsigned int) message_type);
hdr.type = htons (message_type);
hdr.size = htons (sizeof (struct GNUNET_MessageHeader) + data_length);
if ( (GNUNET_OK !=
@@ -338,7 +341,7 @@ extract_files (struct ScanTreeNode *item)
ssize_t size;
size_t slen;
- if (item->is_directory == GNUNET_YES)
+ if (GNUNET_YES == item->is_directory)
{
/* for directories, we simply only descent, no extraction, no
progress reporting */