Make all counts 16-bit

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1946 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2009-06-25 12:44:55 +00:00
parent dab4ec9849
commit 41aa50bf7c
5 changed files with 12 additions and 7 deletions
+1 -1
View File
@@ -220,7 +220,7 @@ static inline int nxflat_gotrelocs(FAR struct nxflat_loadinfo_s *loadinfo)
/* From this, we can get the offset to the list of relocation entries */
offset = ntohl(hdr->h_relocstart);
nrelocs = ntohl(hdr->h_reloccount);
nrelocs = ntohs(hdr->h_reloccount);
/* The value of the relocation list that we get from the header is a
* file offset. We will have to convert this to an offset into the
+1 -1
View File
@@ -168,7 +168,7 @@ int nxflat_init(const char *filename, struct nxflat_hdr_s *header,
*/
loadinfo->relocstart = ntohl(header->h_relocstart);
loadinfo->reloccount = ntohl(header->h_reloccount);
loadinfo->reloccount = ntohs(header->h_reloccount);
return 0;
}
+1 -1
View File
@@ -123,7 +123,7 @@ static void nxflat_dumploadinfo(struct nxflat_loadinfo_s *loadinfo)
bdbg(" RELOCS:\n");
bdbg(" relocstart: %08lx\n", loadinfo->relocstart);
bdbg(" reloccount: %08lx\n", loadinfo->reloccount);
bdbg(" reloccount: %04lx\n", loadinfo->reloccount);
bdbg(" HANDLES:\n");
bdbg(" filfd: %d\n", loadinfo->filfd);