diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-06-25 12:44:55 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-06-25 12:44:55 +0000 |
commit | 0ffd3b6c84610350f6880e044a2f64a4f8cf55d9 (patch) | |
tree | dcd56d76f7a8bdfa211661c803171d7d6c278a86 /nuttx/binfmt/libnxflat | |
parent | 855e18e540b2973634c70dc2a90e306b1567b49c (diff) | |
download | px4-nuttx-0ffd3b6c84610350f6880e044a2f64a4f8cf55d9.tar.gz px4-nuttx-0ffd3b6c84610350f6880e044a2f64a4f8cf55d9.tar.bz2 px4-nuttx-0ffd3b6c84610350f6880e044a2f64a4f8cf55d9.zip |
Make all counts 16-bit
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1946 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/binfmt/libnxflat')
-rw-r--r-- | nuttx/binfmt/libnxflat/libnxflat_bind.c | 2 | ||||
-rw-r--r-- | nuttx/binfmt/libnxflat/libnxflat_init.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/binfmt/libnxflat/libnxflat_bind.c b/nuttx/binfmt/libnxflat/libnxflat_bind.c index 1d0c8d661..4489ebfcd 100644 --- a/nuttx/binfmt/libnxflat/libnxflat_bind.c +++ b/nuttx/binfmt/libnxflat/libnxflat_bind.c @@ -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 diff --git a/nuttx/binfmt/libnxflat/libnxflat_init.c b/nuttx/binfmt/libnxflat/libnxflat_init.c index 8bc9aef99..6a7a98748 100644 --- a/nuttx/binfmt/libnxflat/libnxflat_init.c +++ b/nuttx/binfmt/libnxflat/libnxflat_init.c @@ -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; } |