Wykres commitów

15 Commity (2ae58b0e6f15fca44984839c4e7dd6a9bb854b0b)

Autor SHA1 Wiadomość Data
David Ward 47fd7538bc Remove set but unused variables which cause compiler warnings 2022-03-08 19:00:00 -05:00
David Ward db573b74ed Fix format specifiers to match arguments' data types 2022-03-08 19:00:00 -05:00
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
Wolfram Sang eb42ad08d5 treewide: use SANE_CURRENT_* macros consistently
Backends use a mixture of SANE_CURRENT_{MAJOR | MINOR} and V_{MAJOR |
MINOR} with all kind of permutations. I was confused by this and one
comment in pieusb.c tells me I was not alone. Some items in old
changelogs suggest to use the SANE_CURRENT_ macros in backends, so let's
switch to do that with the exception of net.c and dll.c. Done with:

$ find backend -name '*.[ch]' | xargs sed -i '/nearly every/ ! { s/\<V_M/SANE_CURRENT_M/g }'
$ git checkout backend/net.c backend/dll.c

And manually removing the comment from pieusb.c. Everything still builds
fine.
2021-06-08 19:01:41 +02:00
Ralph Little acc5ca499f hp4200: memset incorrectly sized. registro[0] is pointer not int. 2021-03-13 17:05:13 -08: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
Povilas Kanapickas 4742f21318 Fix invocations of memset with incorrect size 2019-07-06 22:14:11 +03:00
Olaf Meeuwissen 23891a2646 .editorconfig: trim trailing whitespace 2017-05-29 21:14:29 +09:00
Olaf Meeuwissen aabb63dbbf hp4200: fix [-Wunused-but-set-variable] compiler warnings 2015-12-27 18:38:50 +09:00
Olaf Meeuwissen e65fd1b4cb Fix "discards 'const' qualifier from pointer target type" warnings
The resources pointed to have been acquired by the backend.  It is safe
to cast away the 'const' qualifier when releasing these resources.
2015-11-11 22:41:22 +09:00
Stéphane Voltz 49a7048db0 bug 314042 sane-hp4200.patch
- apply patch from Nickolai Zeldovich (nickolai-guest) to fix a
  potential division by 0
2013-03-18 11:27:15 +01:00
m. allan noah 91598aa800 * backend/*.[ch]: nearly every backend used V_MAJOR
instead of SANE_CURRENT_MAJOR in sane_init()
* backend/snapscan.c: remove EXPECTED_VERSION check
since new SANE standard is forward compatible
2008-11-26 21:21:31 +00:00
Mattias Ellert 21f94b0264 Fix SANE_DEBUG_SANEI_PV8630 2005-09-22 19:02:25 +00:00
Henning Geinitz 46cfa92d35 Enabled backtracking by default. This is slower but avois bumping the scan head
at the end of the scan area and also missing parts of the scanned
image. Increased safety margin for backtracking. This fixes the "garbled image"
bug. Set default gamma value to 2. Manpage update. Status set to "basic".
2005-08-14 12:59:32 +00:00
Henning Geinitz 3c5ea794ba Added hp4200 backend. Code from Julien BLACHE's sane-backends-extras debian
package, based on Frank Zago's patches based on Adrian Perez Jorge's code. Fixed
compilation warnings. Fixed bug when no sane device was given. Code indented by
indent -gnu. Added man page.
2005-08-13 15:30:02 +00:00