diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-01-06 15:34:22 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-01-06 15:34:22 +0000 |
commit | 12b4f1cc8bca7de8373c4949767cd8ecf29a89d8 (patch) | |
tree | bed2fc224036183b64bdc8e7367728ee7bcff6c9 /misc | |
parent | 9714df0891d803f1e2311e7acf29a9fbabe72a49 (diff) | |
download | px4-nuttx-12b4f1cc8bca7de8373c4949767cd8ecf29a89d8.tar.gz px4-nuttx-12b4f1cc8bca7de8373c4949767cd8ecf29a89d8.tar.bz2 px4-nuttx-12b4f1cc8bca7de8373c4949767cd8ecf29a89d8.zip |
NuttX runtime build success
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@515 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'misc')
-rw-r--r-- | misc/pascal/insn16/prun/pexec.c | 2 | ||||
-rw-r--r-- | misc/pascal/libpoff/pfread.c | 3 | ||||
-rw-r--r-- | misc/pascal/libpoff/pftprog.c | 2 | ||||
-rw-r--r-- | misc/pascal/libpoff/pfwprog.c | 2 | ||||
-rw-r--r-- | misc/pascal/libpoff/pfwrodata.c | 2 |
5 files changed, 6 insertions, 5 deletions
diff --git a/misc/pascal/insn16/prun/pexec.c b/misc/pascal/insn16/prun/pexec.c index 686f3d776..8249d55c6 100644 --- a/misc/pascal/insn16/prun/pexec.c +++ b/misc/pascal/insn16/prun/pexec.c @@ -560,7 +560,7 @@ static uint16 pexec_libcall(struct pexec_s *st, ubyte fileno, uint16 subfunc) /* Then transfer the string contents */
- memcpy(dest, src, len);
+ memcpy(dest, src, uparm1);
ref[1] = uparm1;
}
break;
diff --git a/misc/pascal/libpoff/pfread.c b/misc/pascal/libpoff/pfread.c index 890612888..016aebceb 100644 --- a/misc/pascal/libpoff/pfread.c +++ b/misc/pascal/libpoff/pfread.c @@ -41,6 +41,7 @@ #include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <unistd.h>
#include <errno.h>
#include "keywords.h" /* Standard types */
@@ -207,7 +208,7 @@ static uint16 poffReadSectionData(poffSectionHeader_t *shdr, /* Allocate memory to hold the section data */
- *sdata = (char*)malloc(shdr->sh_size);
+ *sdata = (ubyte*)malloc(shdr->sh_size);
if (*sdata == NULL)
{
return eNOMEMORY;
diff --git a/misc/pascal/libpoff/pftprog.c b/misc/pascal/libpoff/pftprog.c index 875e99b38..9c88921a1 100644 --- a/misc/pascal/libpoff/pftprog.c +++ b/misc/pascal/libpoff/pftprog.c @@ -74,7 +74,7 @@ static uint16 poffCheckProgAlloc(poffProgInfo_t *poffProgInfo) {
/* No, allocate it now */
- poffProgInfo->progSectionData = (char*)malloc(INITIAL_PROG_SECTION_SIZE);
+ poffProgInfo->progSectionData = (ubyte*)malloc(INITIAL_PROG_SECTION_SIZE);
if (!poffProgInfo->progSectionData)
{
return eNOMEMORY;
diff --git a/misc/pascal/libpoff/pfwprog.c b/misc/pascal/libpoff/pfwprog.c index 2078fecef..b5dcbd176 100644 --- a/misc/pascal/libpoff/pfwprog.c +++ b/misc/pascal/libpoff/pfwprog.c @@ -84,7 +84,7 @@ void poffAddProgByte(poffHandle_t handle, ubyte progByte) {
/* No, allocate it now */
- poffInfo->progSectionData = (char*)malloc(INITIAL_PROG_SECTION_SIZE);
+ poffInfo->progSectionData = (ubyte*)malloc(INITIAL_PROG_SECTION_SIZE);
if (!poffInfo->progSectionData)
{
fatal(eNOMEMORY);
diff --git a/misc/pascal/libpoff/pfwrodata.c b/misc/pascal/libpoff/pfwrodata.c index 5882462b4..4833a32b5 100644 --- a/misc/pascal/libpoff/pfwrodata.c +++ b/misc/pascal/libpoff/pfwrodata.c @@ -76,7 +76,7 @@ static uint16 poffCheckRoDataAlloc(poffInfo_t *poffInfo) {
/* No, allocate it now */
- poffInfo->roDataSectionData = (char*)malloc(INITIAL_RODATA_SECTION_SIZE);
+ poffInfo->roDataSectionData = (ubyte*)malloc(INITIAL_RODATA_SECTION_SIZE);
if (!poffInfo->roDataSectionData)
{
return eNOMEMORY;
|