Wykres commitów

8 Commity (sanei_thread_fixup)

Autor SHA1 Wiadomość Data
David Ward ff4114a795 kvs40xx: Return NULL from read_data()
Functions called by pthread_create() have the return type (void *).
However, the return statements in read_data() use a value of type
SANE_Status rather than a pointer, which causes a compiler warning.

This return value is never actually used, so return NULL instead.
2022-03-08 19:00:00 -05:00
David Ward a82a312d85 Remove unused functions which cause compiler warnings 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 b4ce719973 kvs40xx: Fix [-Wcast-function-type] compiler warning. Re #120
The changes are meant to make explicit what the run-time or compiler
is thought to be doing anyway.
2019-10-30 20:28:33 +09:00
Chris Bagwell 699babff39 Really fix scan() symbol issue. 2012-08-17 19:18:02 -05:00
Chris Bagwell ec0518cfe0 Fix scan symbol name issue in kvs40xx.c
Introduced in last commit to that file.
2012-08-17 18:55:44 -05:00
Chris Bagwell 67b011b48c Fix duplicate symbol errors in kvs20xx/kvs40xx
These 2 backends are basically copy&paste of each other and so
have duplicate symbol names.

When using prelink backend option, the duplicates will conflict
and cause compile failure.  Probably even in shared libraries
this can be an issue in some cases.

Solved by converting functions to static when possible and
adding a kvs40xx_/kvs20xx_ prefix in remaining cases.
2012-08-07 21:01:35 -05:00
m. allan noah 483b0dc488 adding new kvs40xx backend 2011-06-06 14:28:55 -04:00