Wykres commitów

456 Commity (master)

Autor SHA1 Wiadomość Data
Jürg Billeter 3f727cfb8f sanei_usb: Fix build with libxml2 2.12 2023-11-28 21:35:01 +01:00
Ralph Little a617461c63 sanei_config: malformed line can return NULL for token. We should check. 2023-10-02 16:40:27 -07:00
Ralph Little 9d26edac5f sanei_wire: updated diag for size_t variables using %zu format
(u_long) casts sometimes generate incorrect values in diag.
%zu is pretty standard now so we should be using it for size_t args.
2023-02-20 15:25:46 -08:00
David Ward a82a312d85 Remove unused functions which cause compiler warnings 2022-03-08 19:00:00 -05:00
David Ward db573b74ed Fix format specifiers to match arguments' data types 2022-03-08 19:00:00 -05:00
David Ward 1a933bba7e Cast pointer arguments if needed when using "%p" format specifier
Pointer arguments must have type (void *) when printed with the format
specifier "%p".
2022-03-08 19:00:00 -05:00
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
David Ward f8785fb6a8 mustek_pp: Handle status argument correctly in pa4s2_init()
Currently the pointer itself is overwritten, when it is intended that
the pointer be derefenced first.
2022-03-08 19:00:00 -05:00
Thierry HUCHARD ab11e42894 sanei: Reuse sanei_directio in sanei_pio 2021-12-15 22:39:40 +02:00
Thierry HUCHARD 7d75dbad0c sanei: Remove BEOS support from sanei_pio 2021-12-15 22:39:38 +02:00
Thierry HUCHARD 3e8885f937 sanei: Reuse sanei_directio in sanei_pa4s2 2021-12-15 22:39:36 +02:00
Thierry HUCHARD 79e470cf9a sanei: Reuse sanei_directio in sanei_ab306 2021-12-15 22:39:31 +02:00
Thierry HUCHARD db83d55495 sanei: Reuse sanei_directio in sanei_pp 2021-12-15 22:39:28 +02:00
Thierry HUCHARD 7b5386ff6e Factoring of umax_pp_low functions concerning sys/io.h to sanei lib 2021-12-15 22:39:25 +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 445b5bd7e1
Drop use of obsoleted autoconf AC_HEADER_STDC macro. Fixes #409
Use of the STDC_HEADER pre-processor macro that the autoconf macro
used to define has been removed.  Conditionalized code is now used
unconditionally.  This should be fine as the macro checks for ANSI
C, i.e. C89 (ISO C90), compliant headers.  We already require C99.
2021-01-01 16:02:52 +09:00
Povilas Kanapickas e9d2cdf67b sanei_usb: Allow backends to modify when USB recording is cleared 2020-12-26 16:01:04 +02:00
Peter Marschall 2ad63d4e1e spelling fixes for sane core 2020-08-29 09:18:04 +02:00
Olaf Meeuwissen bfab54e391 Merge branch 'release/1.0.31' into 'master'
Release/1.0.31

See merge request sane-project/backends!514
2020-08-24 09:19:44 +00: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
Oliver Schwartz d65d121e6d Use SANEI_ALLOW_UNCONFIGURED_DEVICES macro to skip test of unconfigured devices instead of platform test. 2020-08-08 09:55:47 +00:00
Michael Cronenworth 9793d4f64e MinGW build fixes
- Fix define check on S_IFSOCK, looked like a typo
- Need a define check around syslog usage
- libdll_preload already has sanei_usb symbols and linking fails with
  duplicate symbol errors if this is left in
2020-06-19 09:34:27 -05:00
Ralph Little 6bb87fdf1f sanei: added missing include file stdint.h 2020-06-14 08:09:44 -07:00
Olaf Meeuwissen bfea8a1a82 Merge branch 'master' into 'release/1.0.30'
# Conflicts:
#   NEWS
2020-05-18 12:08:28 +00:00
Olaf Meeuwissen 8682023faa sanei_tcp: Address possible integer overflow. Re #279, issue 8 2020-05-04 11:54:35 +09:00
Oliver Schwartz 867aeb7d09 Merge branch 'master' into 'master'
sanei_usb: allow non-configured devices on macOS for libusb-1.x

See merge request sane-project/backends!358
2020-04-23 14:13:27 +00:00
Rolf Bensch c47e1c0bd5 sanei_usb: don't read data from timeouted interrupt 2020-03-31 20:01:10 +02:00
Povilas Kanapickas 2fe8e63597 Merge branch 'sanei-usb-record-replay-descriptor' into 'master'
sanei_usb: Add support for record/replay of get descriptor calls

See merge request sane-project/backends!381
2020-03-31 17:55:02 +00:00
Povilas Kanapickas d6d3c0566f Merge branch 'sanei-usb-record-replay-multiple-open' into 'master'
sanei_usb: Support recording conversations within multiple open-close calls

See merge request sane-project/backends!380
2020-03-31 10:03:01 +00:00
Povilas Kanapickas d6fa866818 sanei_usb: Add support for record/replay of get descriptor calls 2020-03-28 22:48:38 +02:00
Povilas Kanapickas 77886e6387 sanei_usb: Return correct error code in replay code path 2020-03-28 22:21:19 +02:00
Povilas Kanapickas 770b204702 sanei_usb: Support devices that are being opened multiple times 2020-03-28 22:13:44 +02:00
Povilas Kanapickas 7d97a1aaf4 sanei_usb: Reset all testing data on exit 2020-03-28 22:13:44 +02:00
Povilas Kanapickas 62614a4660 sanei_usb: Use internal linkage for private static variables 2020-03-28 22:13:44 +02:00
Povilas Kanapickas 45dfd889e6 sanei_usb: Indent the configuration section in recorded xml 2020-03-28 22:12:11 +02:00
Ralph Little 7a86b487bd sanei: corrected fd validity check, which always used to fail. 2020-03-20 19:28:56 -07:00
Brandon Beck c88ba0dff2 Allow unconfigured USB scanners on macOS.
Based on findings from Oliver Schwartz (https://alioth-lists.debian.net/pipermail/sane-devel/2012-June/029890.html)
this change allows USB scanners to be unconfigured on macOS.  This fixes
the issue of scanners being unable to be discovered because they look
to be not configured but end up getting configured later.
2020-03-15 18:39:40 -05:00
Rolf Bensch 738444cd1c add µsec to timestamp 2019-11-26 20:12:23 +01:00
Rolf Bensch d9f35d1b5e add timestamp to debug outputs 2019-11-26 16:32:47 +01:00
Olaf Meeuwissen 0e4a2d107a Merge branch 'hh' into 'master'
uClibc-ng fixes

See merge request sane-project/backends!198
2019-10-06 02:47:36 +00:00
Povilas Kanapickas 6b3ba8af8a sanei_usb: Fix memory leak in USB testing mode 2019-10-05 02:25:34 +03:00
Rosen Penev fc699d2bf5
treewide: Replace bzero with memset
bzero was removed in POSIX 2008. It is optionally unavailable with
uClibc-ng.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-10-03 11:47:50 -07:00
Rosen Penev 428bec49bf
sanei_scsi: Replace bcopy with memcpy
bcopy was deprecated in POSIX 2008 and is optionally unavailable with
uClibc-ng.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-10-03 11:47:50 -07:00
Rosen Penev c320a72e32
treewide: Replace mktemp by mkstemp
mktemp has been removed in POSIX 2008. uClibc-ng optionally does not make
it available.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-10-03 11:47:49 -07:00
Olaf Meeuwissen e00d5462de Fix libusb related [-Werror=deprecated-declarations] warnings
See http://libusb.sourceforge.net/api-1.0/group__libusb__lib.html
2019-09-28 17:46:22 +09:00
Povilas Kanapickas 0290a26394 sanei_usb: Optimize bulk USB transfers in testing mode 2019-09-27 23:19:52 +03:00
Olaf Meeuwissen 8539f350fd sanei_wire: Fix sanei_w_void function signature
This function needs to have the same number of arguments as any other
functions passed to sanei_w_array() via its w_element argument, i.e.
sanei_w_char and sanei_w_word, in the w_option_value() implementation
in sanei/sanei_net.c.

Fixes [-Werror=cast-function-type] compiler warning.
2019-09-24 21:22:13 +09:00
Povilas Kanapickas c69e22eb76 sanei_usb: Fix uninitialized device struct in USB testing code 2019-09-21 18:42:56 +03:00
Povilas Kanapickas f2ce27f441 sanei_usb: Fix build when USB support is disabled 2019-09-10 00:39:08 +03:00
Povilas Kanapickas d2653efbd9 sanei_usb: Add a way to record debug messages to USB captures 2019-08-08 20:52:23 +03:00