Olaf Meeuwissen
cea2a83ea2
Merge branch 'master-spelling' into 'master'
...
spelling fixes
See merge request sane-project/backends!516
2020-09-07 09:24:15 +00:00
Peter Marschall
a36cf4afda
spelling fixes for dell1600n backend
2020-08-29 09:18:04 +02:00
pobrn
0f9b481fee
dell1600n_net: return empty list when local devices are requested
...
!502 made the dell1600n_net backend return GOOD status when local
devices are requested. This is problematic since in that case
the caller may assume that the passed device list has been populated.
However, this is not the case for this backend, since the device list
is not modified in any way in that case. The caller trying to access
the device list may lead to undesired consequences. Fix that by
returning an empty list if 'local_only' is true.
2020-08-20 15:39:32 +02:00
pobrn
45f84a569c
respect 'local_only' parameter of sane_get_devices()
...
Certain backends do network scans even if the 'local_only'
parameter for 'sane_get_devices()' is true. Fix that.
Changes:
1. Modify 'sanei_configure_attach()' so that backend specific
data may be passed to the 'attach()' function.
2. Use this in certain backends to pass the value of the
'local_only' parameter so that network related activities
are only carried out when the value is false.
2020-08-12 12:29:38 +02:00
Olaf Meeuwissen
1f8bfd69a2
dell1600n_net: Fix [-Wincompatible-pointer-types] compiler warnings
...
This casts the pointers to the type expected by the functions as per
POSIX stipulations.
See http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/netinet_in.h.html
2017-07-18 21:08:13 +09:00
Olaf Meeuwissen
23891a2646
.editorconfig: trim trailing whitespace
2017-05-29 21:14:29 +09:00
Volker Diels-Grabsch
7c8c8e29be
Remove dead code due to unused variables
...
This fixes some occurrences of the following GCC warning:
warning: variable '...' set but not used
2015-12-20 15:21:45 +09:00
Olaf Meeuwissen
06b865cfd2
Prevent possible buffer overflows [-Wstrncat-size]. Fixes 315198
2015-10-14 20:39:39 +09:00
Julien BLACHE
ddc05986d7
dell1600n: fix size_t formatting/printing
2010-06-23 18:21:35 +02:00
Julien BLACHE
c009f9038c
dell1600n: fix pointer to/from integer casts
2010-06-23 18:21:35 +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
Jon Chambers
ab4ca71a02
remove strange whitespace characters
2007-06-16 20:55:23 +00:00
Jon Chambers
6b2be8f2bb
Tweaks to allow compilation on OS/2
2007-06-16 19:18:56 +00:00
Jon Chambers
7b3e64508e
TIFF tweaks required for pickier libtiff version under win32/cygwin
2006-08-21 21:12:08 +00:00
Jon Chambers
00e0019c0c
Remove explicit $(srcdir) from conf files in Makefile.
...
Fix dell1600n_net.c compile warnings.
2006-08-20 14:13:42 +00:00
Jon Chambers
b7109db2eb
- added support for dell1600n_net.conf
...
- removed tmpfile usage (including overly large buffer)
- fixed the indentation horrors inflicted by auto-formatting tools
2006-08-12 12:45:11 +00:00
Jon Chambers
5346dc4f04
break out of sane_start wait loop in case of cancellation
2006-06-14 21:02:59 +00:00
Jon Chambers
63361c54ae
Bugfixes related to multipage scanning
...
iScanner -> iHandle
This version is believed (hoped) to be fully functional
2006-06-10 14:34:27 +00:00
Jon Chambers
8c116e3566
initial stab at multipage scan support
2006-06-10 01:23:23 +00:00
Jon Chambers
b584612aae
added dell1600n_net to the build
...
removed #include <sys/select.h>
2006-05-24 20:56:15 +00:00
Jon Chambers
ed9544d46e
new file (not yet included in build)
2006-05-20 10:21:44 +00:00