From ffce73c94f92c9a1b193858b96399e319268a1fa Mon Sep 17 00:00:00 2001 From: Till Kamppeter Date: Thu, 27 Aug 2020 15:45:22 +0200 Subject: [PATCH] libcupsfilters: Removed all signal handling and global variables from get_printer_attributes() and ippfind_based_uri_converter() (cherry picked from commit 23a9dc4010cefe239b8393e4500eb834b0f5ee32) --- cupsfilters/ipp.c | 86 ++++------------------------------------------- 1 file changed, 6 insertions(+), 80 deletions(-) diff --git a/cupsfilters/ipp.c b/cupsfilters/ipp.c index c9138fe2..21861a59 100644 --- a/cupsfilters/ipp.c +++ b/cupsfilters/ipp.c @@ -36,25 +36,24 @@ #if (CUPS_VERSION_MAJOR > 1) || (CUPS_VERSION_MINOR > 5) #define HAVE_CUPS_1_6 1 #endif -static int debug = 0; -static int job_canceled = 0; -static void cancel_job(int sig); enum resolve_uri_converter_type /**** Resolving DNS-SD based URI ****/ { CUPS_BACKEND_URI_CONVERTER = -1, IPPFIND_BASED_CONVERTER_FOR_PRINT_URI = 0, IPPFIND_BASED_CONVERTER_FOR_FAX_URI = 1 -} ; +}; + static int convert_to_port(char *a) { int port = 0; - for( int i = 0; i