Wykres commitów

16 Commity (22108dca2a52f11c01fc252dbcf430fc40b0ddca)

Autor SHA1 Wiadomość Data
David Ward f3162bafa8 Replace variable self-assignments to avoid Clang warnings
These were intended to suppress GCC warnings about unused variables.
However, this leads to different warnings from Clang instead.

Use another approach that suppresses warnings from both compilers.
2022-03-08 19:00:00 -05:00
David Ward 4cf3b09e49 rts8822, rts8891: Replace abs() with fabs() where needed
abs() has an integer parameter and returns an integer value. Floating-
point values should be passed to fabs() instead.

In particular, this affected calculations for gain and offset, where a
value with floating-point precision is clearly expected.
2022-03-08 19:00:00 -05:00
Olaf Meeuwissen e79adde8b2
Use URL to refer users to copies of the GPL and LGPL
With the exception of use in three quotes as well as our inlcuded copy
of the GPL, all use of the Free Software Foundation's postal address
has been removed.

Re #320.
2021-02-12 17:41:38 +09:00
Peter Marschall f4fb21e334 spelling fixes for hp3900 backend 2020-08-29 09:18:03 +02:00
Olaf Meeuwissen 328a5d654b hp3900: Fix [-Wtautological-compare] compiler warning
Although the fix changes the backend's logic, it probably matches what
was the original code's intent.
2019-12-23 21:57:36 +09:00
Rosen Penev fc699d2bf5
treewide: Replace bzero with memset
bzero was removed in POSIX 2008. It is optionally unavailable with
uClibc-ng.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-10-03 11:47:50 -07:00
Cor 408469d94e Update hp3900_rts8822.c
After increase the timeout from 10 to 60 seconds, the hp3970 can scan black and white 35mm films using the parameters Gray, 16 bit and 2400 dpi. More information in https://gitlab.com/sane-project/backends/issues/77
2019-08-08 14:58:09 +00:00
Olaf Meeuwissen fc4b250a09 .editorconfig: use utf-8 charset throughout 2017-05-29 21:14:30 +09:00
Olaf Meeuwissen 23891a2646 .editorconfig: trim trailing whitespace 2017-05-29 21:14:29 +09:00
Jonathan Bravo Lopez 09666ae089 * backend/hp3900_rts8822.c: fix compilation warnings. 2013-05-11 01:36:03 +02:00
Mattias Ellert 9e639753a3 Include <sys/types.h> for definition of u_long on MacOS X 2011-10-30 10:32:34 +01:00
Julien BLACHE 04b0c72e35 hp3900: fix possibly uninitialized variable 2010-06-23 18:21:37 +02:00
Jonathan Bravo Lopez 041f5cd20c * backend/hp3900_sane.c: use 1.1.0 well-known option group strings.
* backend/hp3900_config.c, backend/hp3900_debug.c,
  backend/hp3900_rts8822.c, backend/hp3900_types.c,
  backend/hp3900_usb.c: fixed reference position detection for
  HP3800/HPG2710 scanners. Code clean up.
2008-05-22 10:24:31 +00:00
Jonathan Bravo Lopez e1f9664106 Added support for a new scanner: HP ScanJet G2710
Minor changes
2008-02-13 06:35:26 +00:00
Jonathan Bravo Lopez 97eeb13f6e Fixed bug which made slide/negative scans unusable and changed area constrains for some hp3900 scanners 2007-12-21 13:10:19 +00:00
Jonathan Bravo Lopez 5dac78ac43 Added files for 'hp3900' backend 2007-12-13 00:27:53 +00:00