diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-12-27 19:34:50 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-12-27 20:34:56 +0900 |
commit | bde06503d5d5a8d3dcd579f5f061135e4e47b678 (patch) | |
tree | 60d73b2554806bba80153f1922ac2d750a173cf8 /tdeprint/cups/cupsdconf2 | |
parent | afc67705bd9f090bfcdb0be85e3fc9a2d2d565f1 (diff) | |
download | tdelibs-bde06503d5d5a8d3dcd579f5f061135e4e47b678.tar.gz tdelibs-bde06503d5d5a8d3dcd579f5f061135e4e47b678.zip |
Fixed second pass uncrustify's code formatting offending files.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 9468d05e3d2c56d4287ef464a31f21a689ad7e14)
Diffstat (limited to 'tdeprint/cups/cupsdconf2')
-rw-r--r-- | tdeprint/cups/cupsdconf2/cups-util.c | 19 |
1 files changed, 10 insertions, 9 deletions
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); } |