]> Git Repo - u-boot.git/blobdiff - lib/lzma/LzmaTools.c
lib: Remove <common.h> inclusion from these files
[u-boot.git] / lib / lzma / LzmaTools.c
index f88629b74f34f2e976d8497aa49a54944d87b67d..400d606784eaabcd1029cb41be3f02fbe4663500 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Usefuls routines based on the LzmaTest.c file from LZMA SDK 4.65
  *
@@ -5,8 +6,6 @@
  * Luigi 'Comio' Mantellini ([email protected])
  *
  * Copyright (C) 1999-2005 Igor Pavlov
- *
- * SPDX-License-Identifier:    GPL-2.0+ 
  */
 
 /*
@@ -19,7 +18,7 @@
  */
 
 #include <config.h>
-#include <common.h>
+#include <log.h>
 #include <watchdog.h>
 
 #ifdef CONFIG_LZMA
@@ -37,8 +36,8 @@
 static void *SzAlloc(void *p, size_t size) { return malloc(size); }
 static void SzFree(void *p, void *address) { free(address); }
 
-int lzmaBuffToBuffDecompress (unsigned char *outStream, SizeT *uncompressedSize,
-                  unsigned char *inStream,  SizeT  length)
+int lzmaBuffToBuffDecompress(unsigned char *outStream, SizeT *uncompressedSize,
+                            const unsigned char *inStream, SizeT length)
 {
     int res = SZ_ERROR_DATA;
     int i;
@@ -104,7 +103,7 @@ int lzmaBuffToBuffDecompress (unsigned char *outStream, SizeT *uncompressedSize,
     /* Decompress */
     outProcessed = min(outSizeFull, *uncompressedSize);
 
-    WATCHDOG_RESET();
+    schedule();
 
     res = LzmaDecode(
         outStream, &outProcessed,
This page took 0.028283 seconds and 4 git commands to generate.