From 9468d05e3d2c56d4287ef464a31f21a689ad7e14 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 27 Dec 2020 19:34:50 +0900 Subject: Fixed second pass uncrustify's code formatting offending files. Signed-off-by: Michele Calgaro --- tdeprint/cups/cupsdconf2/cups-util.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'tdeprint/cups/cupsdconf2') diff --git a/tdeprint/cups/cupsdconf2/cups-util.c b/tdeprint/cups/cupsdconf2/cups-util.c index 3772b35d0..e3039ea94 100644 --- a/tdeprint/cups/cupsdconf2/cups-util.c +++ b/tdeprint/cups/cupsdconf2/cups-util.c @@ -237,11 +237,11 @@ cupsGetConf(void) while ((bytes = #if CUPS_VERSION_MAJOR < 1 || (CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR < 2) - httpRead + httpRead(cups_server, buffer, sizeof(buffer)) #else - httpRead2 + httpRead2(cups_server, buffer, sizeof(buffer)) #endif - (cups_server, buffer, sizeof(buffer))) > 0) + ) > 0) { write(fd, buffer, bytes); } @@ -341,21 +341,22 @@ cupsPutConf(const char *name) /* I - Name of the config file to send */ break; } else + { #if CUPS_VERSION_MAJOR < 1 || (CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR < 2) - httpWrite + httpWrite(cups_server, buffer, bytes); #else - httpWrite2 + httpWrite2(cups_server, buffer, bytes); #endif - (cups_server, buffer, bytes); + } if (status == HTTP_CONTINUE) { #if CUPS_VERSION_MAJOR < 1 || (CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR < 2) - httpWrite + httpWrite(cups_server, buffer, 0); #else - httpWrite2 + httpWrite2(cups_server, buffer, 0); #endif - (cups_server, buffer, 0); + while ((status = httpUpdate(cups_server)) == HTTP_CONTINUE); } -- cgit v1.2.1