mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 09:36:41 -04:00
- 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
20 lines
775 B
C
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 );
|
|
}
|