summaryrefslogtreecommitdiffstats
path: root/tdeprint/cups/cupsdconf2
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-12-27 19:34:50 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-12-27 19:34:50 +0900
commit9468d05e3d2c56d4287ef464a31f21a689ad7e14 (patch)
treeadf22710dca7ba948cfbd53e82036ea854727e64 /tdeprint/cups/cupsdconf2
parent225e0d0b0f6d86433af9ee534e3a4d298289bc1d (diff)
downloadtdelibs-9468d05e3d2c56d4287ef464a31f21a689ad7e14.tar.gz
tdelibs-9468d05e3d2c56d4287ef464a31f21a689ad7e14.zip
Fixed second pass uncrustify's code formatting offending files.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdeprint/cups/cupsdconf2')
-rw-r--r--tdeprint/cups/cupsdconf2/cups-util.c19
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);
}