ports/print/epson-inkjet-printer-escpr/files/patch-lib_epson-usb.c
Jose Alonso Cardenas Marquez 65786c213a
print/epson-inkjet-printer-escpr: Update to 1.8.5
- Add support for Epson-EP-716A_Series, Epson-EP-901A_series,
  Epson-EP-M476T_Series, Epson-ET-2860_Series, Epson-ET-2870_Series,
  Epson-EW-056A_Series, Epson-EW-456A_Series, Epson-L1270_Series,
  Epson-L3270_Series, Epson-L3280_Series and Epson-L5310_Series

PR:		280343
2024-07-23 01:25:53 -05:00

20 lines
775 B
C

--- lib/epson-usb.c.orig 2023-02-15 02:57:29 UTC
+++ lib/epson-usb.c
@@ -709,7 +709,7 @@ EPS_ERR_CODE usbResetPrinter (
#define EPS_RSREPLY_SIZE (32)
EPS_ERR_CODE Ret;
EPS_INT32 ComSize = 0;
- EPS_INT32 retBufSize; /* Size of buffer written */
+ EPS_INT32 retBufSize __unused; /* Size of buffer written */
EPS_INT32 retryComm;
EPS_INT32 retryReset;
EPS_INT32 Size = EPS_RSREPLY_SIZE;
@@ -2325,7 +2325,7 @@ static EPS_ERR_CODE GetSerialNumber (
EPS_RETURN( ret );
}
- tmpBuff = (EPS_INT8*)EPS_ALLOC(tmpBuffSize);
+ tmpBuff = (EPS_UINT8*)EPS_ALLOC(tmpBuffSize);
if (tmpBuff == NULL) {
EPS_RETURN( EPS_ERR_MEMORY_ALLOCATION );
}