From 29f338fe21b0fb066d05d1335e0562560ff1f4b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Mon, 15 Apr 2024 01:54:43 +0200 Subject: Set a real data type used for FreeArray2D. This relates to issue #17. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- kernel/kls_ljpeg/ljpeg2ppm/ljpgtopnm.c | 2 +- kernel/kls_ljpeg/ljpeg2ppm/util.c | 4 ++-- 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); -- cgit v1.2.1