--- a/Makefile.am +++ b/Makefile.am @@ -71,7 +71,7 @@ else libsane_hpaio_la_LDFLAGS = -version-info 1:0:0 endif # The following is a interlibrary dependency that must be compiled first. -libsane_hpaio_la_LIBADD = libhpip.la libhpmud.la libhpipp.la $(DBUS_LIBS) -lcups -ldl +libsane_hpaio_la_LIBADD = libhpip.la libhpmud.la libhpipp.la $(DBUS_LIBS) -ldl #libsane_hpaio_la_CFLAGS = -DWITH_NONAMESPACES -DSOAP_DEBUG libsane_hpaio_la_CFLAGS = $(DBUS_CFLAGS) -Iprotocol --- a/scan/sane/hpaio.c +++ b/scan/sane/hpaio.c @@ -34,7 +34,6 @@ #include #include #include -#include #include "hpmud.h" #ifdef HAVE_LIBAVAHI @@ -150,98 +149,6 @@ static int GetUriLine(char *buf, char *u return i; } -static int AddCupsList(char *uri, char ***printer) -{ - int i, stat=1; - - /* Look for hp network URIs only. */ - if (strncasecmp(uri, "hp:/net/", 8) !=0) - goto bugout; - - if (*printer == NULL) - { - /* Allocate array of string pointers. */ - *printer = malloc(sizeof(char *) * MAX_DEVICE); - memset(*printer, 0, sizeof(char *) * MAX_DEVICE); - } - - /* Ignor duplicates (ie: printer queues using the same device). */ - for (i=0; (*printer)[i] != NULL && i