Index: hplip-3.20.9/Makefile.am =================================================================== --- hplip-3.20.9.orig/Makefile.am +++ hplip-3.20.9/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 Index: hplip-3.20.9/scan/sane/hpaio.c =================================================================== --- hplip-3.20.9.orig/scan/sane/hpaio.c +++ hplip-3.20.9/scan/sane/hpaio.c @@ -34,9 +34,7 @@ #include #include #include -#include #include "hpmud.h" -#include "avahiDiscovery.h" #include "hp_ipp.h" #include "soap.h" #include "soapht.h" @@ -146,98 +144,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