mirror of
https://git.freebsd.org/ports.git
synced 2025-05-01 02:56:39 -04:00
found on many modern scanners which are intended to trigger certain actions like copying, faxing or mailing the scanned document. This daemon queries the scanner button state several times per second via libusb and if it detects that a button is pressed it runs a shell script with the button number as an argument. The supported scanner backends currently are: epson, niash, plustek, snapscan Author: Bernhard Stiftner <root84@users.sourceforge.net> WWW: http://scanbuttond.sourceforge.net/ PR: ports/95386 Submitted by: Daniel Thiele Approvel by: lawrance (mentor, implicit)
11 lines
351 B
C
11 lines
351 B
C
--- lib/loader.c.orig Wed Feb 15 18:00:12 2006
|
|
+++ lib/loader.c Fri Mar 31 10:35:41 2006
|
|
@@ -27,7 +27,7 @@
|
|
|
|
backend_t* load_backend(const char* filename)
|
|
{
|
|
- char* error;
|
|
+ const char* error;
|
|
void* dll_handle = dlopen(filename, RTLD_NOW|RTLD_LOCAL);
|
|
if (!dll_handle) {
|
|
syslog(LOG_ERR, "loader: failed to load \"%s\". Error message: \"%s\"",
|