aboutsummaryrefslogtreecommitdiff
path: root/src/util/container_meta_data.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-11-22 13:52:31 +0000
committerChristian Grothoff <christian@grothoff.org>2009-11-22 13:52:31 +0000
commit02f21c08e22a6b04030b4eb990fa5046e79e00b3 (patch)
tree171b5a164f9fad3b469cc496fbaf53cf293d92ac /src/util/container_meta_data.c
parent6d8cd8a519662882643acb25e919c60cce791518 (diff)
downloadgnunet-02f21c08e22a6b04030b4eb990fa5046e79e00b3.tar.gz
gnunet-02f21c08e22a6b04030b4eb990fa5046e79e00b3.zip
fix type
Diffstat (limited to 'src/util/container_meta_data.c')
-rw-r--r--src/util/container_meta_data.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/container_meta_data.c b/src/util/container_meta_data.c
index ebf6ce778..912ac2684 100644
--- a/src/util/container_meta_data.c
+++ b/src/util/container_meta_data.c
@@ -435,7 +435,7 @@ struct MetaDataHeader
435 uint32_t size; 435 uint32_t size;
436 436
437 /** 437 /**
438 * This is followed by 'entries' values of type 'unsigned int' that 438 * This is followed by 'entries' values of type 'uint32_t' that
439 * correspond to EXTRACTOR_KeywordTypes. After that, the meta-data 439 * correspond to EXTRACTOR_KeywordTypes. After that, the meta-data
440 * keywords follow (0-terminated). The MD block always ends with 440 * keywords follow (0-terminated). The MD block always ends with
441 * 0-termination, padding with 0 until a multiple of 8 bytes. 441 * 0-termination, padding with 0 until a multiple of 8 bytes.
@@ -488,7 +488,7 @@ GNUNET_CONTAINER_meta_data_serialize (const struct GNUNET_CONTAINER_MetaData
488 for (i = 0; i < ic; i++) 488 for (i = 0; i < ic; i++)
489 ((uint32_t *) & hdr[1])[i] = htonl ((uint32_t) md->items[i].type); 489 ((uint32_t *) & hdr[1])[i] = htonl ((uint32_t) md->items[i].type);
490 pos = sizeof (struct MetaDataHeader); 490 pos = sizeof (struct MetaDataHeader);
491 pos += sizeof (unsigned int) * ic; 491 pos += sizeof (uint32_t) * ic;
492 for (i = 0; i < ic; i++) 492 for (i = 0; i < ic; i++)
493 { 493 {
494 len = strlen (md->items[i].data) + 1; 494 len = strlen (md->items[i].data) + 1;