Wykres commitów

14 Commity (master)

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
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
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
Olaf Meeuwissen 23891a2646 .editorconfig: trim trailing whitespace 2017-05-29 21:14:29 +09:00
Olaf Meeuwissen c2b7b1af74 canon636u: fix [-Wunused-but-set-variable] compiler warning 2015-12-27 18:38:40 +09:00
Mattias Ellert 9e639753a3 Include <sys/types.h> for definition of u_long on MacOS X 2011-10-30 10:32:34 +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
Nathaniel Rutman 4439bbd101 Cleaned up man page, removed some compiler warnings.
Made HMG's fix for bug #300257 permament.
2003-11-28 19:47:10 +00:00
Henning Geinitz 5204d4fed8 Workaround for bug in canon630u backend: The backend assumes that the id it gets
back from sanei_usb_open is a file descriptor. It isn't. So sane_get_select_fd
returns just a random number. That breals at least saned, other frontends may
not work either. This is a workaround for bug #300257.
2003-10-08 15:42:55 +00:00
Henning Geinitz d8cadc1881 Option names shouldn't be translated. 2003-10-05 11:43:58 +00:00
Nathaniel Rutman 2b0ea7786e Removed last change in offset/gain calculation, which croaked for some
cases.  Give up early if we can't talk on the USB.
Added option to force scanner recalibration.
2003-04-05 19:44:04 +00:00
Nathaniel Rutman b1d4dce599 calibration and gamma correction enhancements by M.Reinelt <reinelt@eunet.at> 2003-01-13 03:01:04 +00:00
Henning Geinitz 991bd09675 Fixed PACKAGE_VERSION breakage. PACKAGE_VERSION was redefined by autoconf 2.5
with a different meaning. Use PACKAGE_STRING instead.
2002-11-29 18:19:58 +00:00
Henning Geinitz d90a7a5357 Added canon630u backend. This backend supports the CanoScan 630u and CanoScan
636u (hopefully). Patch from Nathan Rutman <nathan@gordian.com>.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-04-07 12:27:54 +00:00