Wykres commitów

20 Commity (b5d5b01886fa60ac4538e548e9fad8437bfe5144)

Autor SHA1 Wiadomość Data
David Ward 6be83f469b Resolve compiler warnings about misleading indentation
This change is targeted at specific lines of code reported by GCC or
Clang as potentially causing unintended behavior.
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
Peter Marschall 66443f37e6 spelling fixes for ibm backend 2020-08-29 09:18:04 +02:00
Ralph Little 821efb2626 ibm/ricoh: suppress warning by using snprintf instead of strncat 2019-12-21 20:21:52 -08:00
Olaf Meeuwissen 23891a2646 .editorconfig: trim trailing whitespace 2017-05-29 21:14:29 +09:00
Olaf Meeuwissen 1c2b28307f Prevent access to memory that was not allocated 2015-09-19 13:39:37 -04:00
Olaf Meeuwissen f152b40faf Prefer string concatenation over copying
The `ibuf.product` byte array may contain embedded NUL characters.  In
that case the revision will not be visible as part of dev->sane.model.
2015-09-19 13:39:37 -04:00
Ilya Gordeev 16dc9c87a6 Fix memory clobbering issue in sane.model creation 2015-09-19 13:39:37 -04:00
Julien BLACHE 8d16965444 ibm: fix sane_init() DBG() call wrt function pointer cast to void * 2010-06-23 18:21:37 +02:00
m. allan noah ff048f4176 add three new SANE_VALUE macros and use mode name macros from saneopts.h 2010-02-10 23:48:21 -05:00
Alessandro Zummo b39c12dd7b Define MM_PER_INCH once for all 2009-06-18 15:54:49 +02: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
m. allan noah 994bef3b16 reduce gcc pedantic/ansi warnings from 690 to 280 lines, mostly via casts in
str*() calls, also update hpljm1005 sane_cancel code
2008-02-04 01:20:01 +00:00
Julien BLACHE 7ca41423ac OPT_NUM_OPTS must be of type SANE_TYPE_INT. 2007-10-26 14:56:38 +00:00
Henning Geinitz e7484c515e Silenced some compilation warnings. 2003-12-27 17:48:39 +00:00
Henning Geinitz 0e70e29baf Moved union Option_Value from backend header files to sanei_backend.h. No need
to copy it over and over again. Changed header inclusion order in backend
files to include backend.h after sanei_backend.h. Based on a patch from stef
<stef-listes@wanadoo.fr>.
2003-09-12 16:10:33 +00:00
Henning Geinitz 0ccece33cd Only disable object position command for Ricoh IS-420. 2003-05-04 13:13:15 +00:00
Henning Geinitz 895ab09f6a Disabled object_position. That should fix the Ricoh IS-420. 2003-05-03 16:13:59 +00:00
Henning Geinitz 87387511b0 Added IBM backend for the IBM 2456, the Ricoh IS-420 and maybe the IS-410 and
IS-430 from mf <massifr@tiscalinet.it>. Added manual page, fixed some
warnings, Added detection for IS-410 and IS-430.
2003-04-15 09:54:00 +00:00