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
2442ddf6d1
sp15c: Fix [-Wunused-const-variable=] compiler warning
...
The RCSid* variables have never been used for anything by the backend
code.
2017-06-26 11:28:10 +09:00
Olaf Meeuwissen
23891a2646
.editorconfig: trim trailing whitespace
2017-05-29 21:14:29 +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
Stéphane Voltz
e8c11a0849
fix for #300131
...
- free memory allocated by sane_get_devices()
2015-08-10 21:47:41 +02:00
Julien BLACHE
7d6e63d1d3
sp15c: remove "/*" within comment
2010-06-23 18:21:38 +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
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
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
Mattias Ellert
7c6b4d6a99
Fix handling of valid "negative" PIDs
2007-11-18 10:59:18 +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
085e777104
Fixed ADF support. Patch from Andreas Degert <ad@papyrus-gmbh.de>.
2006-03-29 20:48:50 +00:00
Henning Geinitz
131218afb4
Fixed some warnings (bug #302290 ).
2005-10-01 17:06:25 +00:00
Henning Geinitz
e479c32503
Better 4->8 bit depth expansion algorithm (from Mattias Ellert
...
<mattias.ellert@tsl.uu.se>).
2005-07-15 18:12:49 +00:00
Henning Geinitz
d80e2f47ca
Don't eject medium twice after each page.
2004-10-06 15:59:40 +00:00
Mattias Ellert
ac9ec0ff1c
Missed one...
2004-06-20 01:22:44 +00:00
Henning Geinitz
d5b20dfd4d
Fixed the fix of the sanei_thread fix (from Mattias Ellert).
2004-05-29 10:27:47 +00:00
Henning Geinitz
e5465f5e3a
Fixed sanei_thread fix (bug #300634 , by Mattias Ellert).
2004-05-28 18:52:53 +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
d24bbc4398
Fixed config_line[len-1] bug which could generate an access
...
violation if len==0.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2001-05-31 18:01:39 +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