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-18 02:12:36 +0200
commit061a1af5ad8507faeb27034f3d2616d1c3cccce4 (patch)
treed83f4fbf323e44ddbf303724f94199b2272939af
parent4f4ea4c0abcfb5d68b9ff94bd75efb2fc73d470d (diff)
downloadlibksquirrel-061a1af5ad8507faeb27034f3d2616d1c3cccce4.tar.gz
libksquirrel-061a1af5ad8507faeb27034f3d2616d1c3cccce4.zip
Set a real data type used for FreeArray2D.
This relates to issue #17. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 29f338fe21b0fb066d05d1335e0562560ff1f4b1)
-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);