summaryrefslogtreecommitdiff
path: root/backend/hp3900_rts8822.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2023-02-12 17:36:10 +0100
committerJörg Frings-Fürst <debian@jff.email>2023-02-12 17:36:10 +0100
commite0d94cf4d39395df1e2c6bb4d967200298c13881 (patch)
treebe5c7cace6697afc753c152d13ad5145d0884a42 /backend/hp3900_rts8822.c
parent527bedac30eb120915718eb7997e6dacd583512e (diff)
parent84357741a6a6e6430f199b2c3f7498e0e97da9ad (diff)
Update upstream source from tag 'upstream/1.2.1'
Update to upstream version '1.2.1' with Debian dir a9bb43f754a5c9a361b076af3635cc767b7e652e
Diffstat (limited to 'backend/hp3900_rts8822.c')
-rw-r--r--backend/hp3900_rts8822.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/backend/hp3900_rts8822.c b/backend/hp3900_rts8822.c
index c818b89..f74d586 100644
--- a/backend/hp3900_rts8822.c
+++ b/backend/hp3900_rts8822.c
@@ -4856,8 +4856,8 @@ Refs_Analyze_Pattern (struct st_scanparams *scancfg,
{
/*d4df */
diff_max = color_dif[cnt];
- if (abs (color_dif[cnt] - color_dif[cnt - 1]) >
- abs (color_dif[coord] - color_dif[coord - 1]))
+ if (fabs (color_dif[cnt] - color_dif[cnt - 1]) >
+ fabs (color_dif[coord] - color_dif[coord - 1]))
coord = cnt;
}
@@ -4907,8 +4907,8 @@ Refs_Analyze_Pattern (struct st_scanparams *scancfg,
if ((color_dif[cnt] >= 0) && (color_dif[cnt] > diff_max))
{
diff_max = color_dif[cnt];
- if (abs (color_dif[cnt] - color_dif[cnt - 1]) >
- abs (color_dif[coord] - color_dif[coord - 1]))
+ if (fabs (color_dif[cnt] - color_dif[cnt - 1]) >
+ fabs (color_dif[coord] - color_dif[coord - 1]))
coord = cnt;
}
@@ -4954,8 +4954,8 @@ Refs_Analyze_Pattern (struct st_scanparams *scancfg,
if ((color_dif[cnt] >= 0) && (color_dif[cnt] > diff_max))
{
diff_max = color_dif[cnt];
- if (abs (color_dif[cnt] - color_dif[cnt - 1]) >
- abs (color_dif[coord] - color_dif[coord - 1]))
+ if (fabs (color_dif[cnt] - color_dif[cnt - 1]) >
+ fabs (color_dif[coord] - color_dif[coord - 1]))
coord = cnt;
}
@@ -7703,7 +7703,7 @@ Scan_Read_BufferA (struct st_device *dev, SANE_Int buffer_size, SANE_Int arg2,
"+ Scan_Read_BufferA(buffer_size=%i, arg2, *pBuffer, *bytes_transferred):\n",
buffer_size);
- arg2 = arg2; /* silence gcc */
+ (void) arg2; /* silence gcc */
*bytes_transferred = 0;
if (pBuffer != NULL)
@@ -11364,7 +11364,7 @@ Calib_CreateBuffers (struct st_device *dev, struct st_calibration *buffer,
SANE_Int ebp, ret, channel;
ret = ERROR;
- dev = dev;
+ (void) dev;
buffer->shadinglength = scan.coord.width;
ebp = 0x14;
@@ -12602,9 +12602,9 @@ Calib_BWShading (struct st_calibration_config *calibcfg,
/*falta codigo */
/*silence gcc */
- calibcfg = calibcfg;
- myCalib = myCalib;
- gainmode = gainmode;
+ (void) calibcfg;
+ (void) myCalib;
+ (void) gainmode;
return OK;
}
@@ -13624,7 +13624,7 @@ Calibration (struct st_device *dev, SANE_Byte * Regs,
DBG (DBG_FNC, "> Calibration\n");
dbg_ScanParams (scancfg);
- value = value; /*silence gcc */
+ (void) value; /*silence gcc */
memcpy (&calibdata->Regs, Regs, sizeof (SANE_Byte) * RT_BUFFER_LEN);