Wykres commitów

42 Commity (83fa276b907cfbfbf65ef6bafa4e16fdd963dea6)

Autor SHA1 Wiadomość Data
Olaf Meeuwissen df1aba21bc SANE_Pid: Fix [-Wint-conversion] issues
Not all pthreads implementations use an integer type for pthread_t.
As a matter of fact, POSIX has explicitly withdrawn the requirement
that it must be an arithmatic type.

The musl C library uses a `struct __pthread *` which triggered the
warnings.  As of this change, sanei_thread.h works around this by
providing two new macros to help keep this issue out of sight.  All
backends have been changed to use these macros.
2017-07-15 14:47:54 +09:00
Olaf Meeuwissen 3191056a4c microtek2: Fix [-Wmisleading-indentation] compiler warnings
The case branches have been made to follow other case branches in the
same switch.
2017-06-26 17:58:44 +09:00
Olaf Meeuwissen 23891a2646 .editorconfig: trim trailing whitespace 2017-05-29 21:14:29 +09:00
Jörg Frings-Fürst e21bb28e50 Source code string typo fixes 2017-05-13 18:38:43 +09:00
Olaf Meeuwissen d3d5dc3da0 Update to autoconf-2.69
This gets rid of a number of obsoleted macros and replaces RETSIGTYPE
with a void literal which can be assumed for C89 and later.

This changeset was prepared using autoupdate and modified to get rid of
whitespace and doubled [] changes.  Changes to acinclude.m4 were added
by hand.
2016-06-13 22:05:34 +09:00
Olaf Meeuwissen 8b75c6d450 microtek2: fix another [-Wunused-but-set-variable] compiler warning
This allows for the fact that the backend may be compiled with and
without support for authorization.
2015-12-27 18:41:54 +09:00
Olaf Meeuwissen c145877095 microtek2: fix [-Wunused-but-set-variable] compiler warnings 2015-12-27 18:41:54 +09:00
Olaf Meeuwissen e094c5b43b Invert sense of sanei_thread validity check
Double negatives suck.
2015-11-24 18:19:31 +09:00
Olaf Meeuwissen fe12d31e68 Fix SANE_Pid related -Wsign-compare warnings
This may fix threading related issues on WIN32 platforms, BTW.
2015-11-24 18:19:31 +09:00
m. allan noah 3403daef2e Make sequence point warning go away
See f219f7fb for details.
2015-09-28 21:16:28 -04:00
Yuri Chornoivan 648d933c56 Fix minor typos in messages and comments 2015-08-31 20:31:54 -04:00
chris@cnpbagwell.com 4d9e8138af standardize including local sane/ include files.
Source code was inconsistent on how they were referencing
include files in include/sane.  In certain cases, sane/sane.h
and sane/saneopts.h was really including external copies (with
some preprocessor implementations anyways).
2009-05-07 22:06:20 -05:00
Chris Bagwell 70f3fdfba4 * acinclude.m4, backend/*.[ch], tools/*.[ch], frontend/*.[ch]:
Global replace of u_int??_t with C9x standard based uintxx_t
 in order to remove some tricky and overlapping portability logic
 from acinclude.m4 and leave it in only m4/stdint.m4.
2009-02-26 03:15:43 +00: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 2dc0cb38bd separate x-resolution from resolution, and update all backends that use
it, to prevent ui change
2008-07-26 03:53:44 +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
Mattias Ellert 7c6b4d6a99 Fix handling of valid "negative" PIDs 2007-11-18 10:59:18 +00:00
Julien BLACHE 83a22d6ab9 backend/microtek2.c: Add missing braces. 2007-04-17 19:11:29 +00:00
Julien BLACHE 7d15d5b06b Add missing return status check in sane_start(), preventing an ugly segfault later on. 2007-01-08 18:45:50 +00:00
Henning Geinitz 41c181b062 Fixed problem with option "resolution" which esists twice at the same time. Bug
#302466.
2006-01-02 15:55:18 +00:00
Mattias Ellert cbd43ed18a Off-by-one error 2005-10-05 16:02:23 +00:00
Henning Geinitz 419c622b44 Added backend version 200410042220 from Karsten Festag <karsten.festag@gmx.de>.
While attaching devices only read attributes from source 0 (=
MD_SOURCE_FLATBED), others give wrong results. Better handling of different
shading depths. Including model ColorPage-EP. Workaround for firmware bug for
V300 (FW < 2.70). Workaround for firmware bug with odd pixel numbers. Bugfix for
lamp switching when using LightLid35 Transparency Adaptor.
2004-10-05 10:52:39 +00:00
Henning Geinitz af58065746 64 bit platform fixes (bug #300799). 2004-10-03 17:34:36 +00:00
Henning Geinitz 0e29f2138f Fixed some warnings (bug #300823). Fixed Microtek Phantom C6 scanning on big
endian platforms. Based on patch from Matijs van Zuijlen in Debian bug tracking
system (#274523).
2004-10-03 13:19:07 +00:00
Henning Geinitz 9e3a4cefbf Fixed some warnings (bug #300823). 2004-10-03 12:57:19 +00:00
Henning Geinitz dd60b829d0 Fixed some (but not all) MIN related compilation warnings (bug #300823). 2004-06-22 16:16:45 +00:00
Henning Geinitz 07d7013992 Use sanei_thread instead of fork() in the unmaintained backends.
Patches from Mattias Ellert (bugs: 300635, 300634, 300633, 300629).
2004-05-23 17:28:56 +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 af90832aee Bugfix for the X12USL(solved problems >600dpi), one for lineart mode with a
6400XL and one for Scanmaker 5 (crashes at sendgamma). From Karsten Festag
<karsten.festag@gmx.de>.
2003-01-16 22:07:18 +00:00
Henning Geinitz be735bc16b OPT_THRESHOLD fix. Avoid using "_" in option names. Set more options in
microtek2.conf to on by default. From Karsten Festag <karsten.festag@gmx.de>.
2003-01-11 22:15:14 +00:00
Henning Geinitz a50e314cbe Improved support for Scanmaker X12USL. Alpha support for Scanmaker
9800XL. Some bugfixes. (From Karsten Festag <karsten.festag@gmx.de>).
2003-01-09 00:40:45 +00:00
Henning Geinitz 203639b5fe Updated Karsten Festag's email address and website.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-05-24 22:41:40 +00:00
Henning Geinitz 0f2b241654 Fixed undefined behaviour problem and Scanmaker X12 problems. New version:
20020127. Code from karsten.festag@t-online.de (Karsten Festag).
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-01-27 15:08:42 +00:00
Henning Geinitz 808dfaeef7 Update to backend 0.95-20020112 (from karsten.festag@t-online.de
(Karsten Festag)).
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-01-19 20:58:42 +00:00
Henning Geinitz 61770b4e32 Updated microtek2 backend to build
20011023 (from karsten.festag@t-online.de (Karsten Festag)).
Bugfix for scsi_read_image_status - supports now the old and the
new method. Improved backend-calibration supports brightness and
contrast settings and color balancing. Enable 12 bit per color
scanning with Scanmaker 9600XL (and other types that use the segreg
pixel transfer format and support 12 bit, untested). 10 bit does not
work yet. Make C6 USB work.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2001-10-24 20:35:12 +00:00
Henning Geinitz 651a8ea2e0 Updated Microtek2 backend to version 0.9 build 20010828 (from
Karsten Festag <karsten.festag@t-online.de>).
Henning Meier-Geinitz <henning@meier-geinitz.de>
2001-10-05 19:15:46 +00:00
Henning Geinitz 3dda1fd7a0 Updated to version 0.9 (from Karsten Festag
<karsten.festag@t-online.de>).
Henning Meier-Geinitz <henning@meier-geinitz.de>
2001-05-26 13:18:42 +00:00
Henning Geinitz ca752182ef 2000-11-23 Henning Meier-Geinitz <hmg@gmx.de>
* NEWS: Updated for SANE 1.0.4. Please check.
	* README.aix: Removed paragraph about shared libs not working.
	* README.linux: Added paragraph about excessive warnings due to glibc
	  bug (from Peter Kirchgessner).
	* TODO: Removed entry about shared libs not working on AIX. Added entry
	  about PTAL checks. Removed entry about DBG and microtek2. Added entry
	  about dc210 and jpeg functions. Added entry about using strchr()
	  instead of index().
	* sane.lsm: Added NEC.
	* backend/microtek2.c: (from karsten.festag@t-online.de (Karsten
	  Festag)) Use DBG instead of printf/fprintf. Use
	  #include "../sane/include/..." instead of #include "sane/...". Fixed
	  warnings.
2000-11-23 20:04:09 +00:00
Petter Reinholdtsen b4a1a513c9 Merge devel (v1.0.3) into head branch. 2000-08-12 15:11:46 +00:00
Petter Reinholdtsen 760423d864 Merged main branch with current DEVEL_1_9. 2000-03-05 13:57:25 +00:00
Petter Reinholdtsen 30ab5e718a Initial revision 1999-08-09 18:06:01 +00:00