summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2024-04-15 01:54:43 +0200
committerSlávek Banko <slavek.banko@axis.cz>2024-04-15 01:54:43 +0200
commit29f338fe21b0fb066d05d1335e0562560ff1f4b1 (patch)
treed83f4fbf323e44ddbf303724f94199b2272939af
parent512be3d17b531dd0f86dca60223cd220b735d28e (diff)
downloadlibksquirrel-29f338fe21b0fb066d05d1335e0562560ff1f4b1.tar.gz
libksquirrel-29f338fe21b0fb066d05d1335e0562560ff1f4b1.zip
Set a real data type used for FreeArray2D.
This relates to issue #17. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r--kernel/kls_ljpeg/ljpeg2ppm/ljpgtopnm.c2
-rw-r--r--kernel/kls_ljpeg/ljpeg2ppm/util.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/kernel/kls_ljpeg/ljpeg2ppm/ljpgtopnm.c b/kernel/kls_ljpeg/ljpeg2ppm/ljpgtopnm.c
index c38c214..854e72e 100644
--- a/kernel/kls_ljpeg/ljpeg2ppm/ljpgtopnm.c
+++ b/kernel/kls_ljpeg/ljpeg2ppm/ljpgtopnm.c
@@ -48,7 +48,7 @@
* input and output file pointers
*/
FILE *inFile, *outFile;
-void FreeArray2D(char **);
+void FreeArray2D(MCU *);
void WritePmHeader(DecompressInfo dcInfo);
diff --git a/kernel/kls_ljpeg/ljpeg2ppm/util.c b/kernel/kls_ljpeg/ljpeg2ppm/util.c
index 9474291..9d86ac8 100644
--- a/kernel/kls_ljpeg/ljpeg2ppm/util.c
+++ b/kernel/kls_ljpeg/ljpeg2ppm/util.c
@@ -44,7 +44,7 @@
#include "mcu.h"
#include "proto.h"
-void FreeArray2D(char **);
+void FreeArray2D(MCU *);
void FixHuffTbl(HuffmanTable *);
unsigned int bitMask[] = { 0xffffffff, 0x7fffffff, 0x3fffffff, 0x1fffffff,
@@ -293,7 +293,7 @@ FixHuffTbl (htbl)
*/
void
FreeArray2D(arrayPtr)
- char **arrayPtr;
+ MCU *arrayPtr;
{
free(arrayPtr[0]);
free(arrayPtr);