summaryrefslogtreecommitdiffstats
path: root/tdeprint/management/kmwlpd.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-23 11:24:09 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-23 11:49:35 +0900
commit89c8032171eb722341972a56d0a0c8a003042511 (patch)
treefcc02c37f4280c91fffd3fe2dd7537846f78221a /tdeprint/management/kmwlpd.cpp
parente84b6d8935842fb8dcee9dc42f8f35f36ee72748 (diff)
downloadtdelibs-89c8032171eb722341972a56d0a0c8a003042511.tar.gz
tdelibs-89c8032171eb722341972a56d0a0c8a003042511.zip
Replaced various '#define' with actual strings - part 2
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit d42f9ae842840a825c4ad4f7341f82003127c8f6)
Diffstat (limited to 'tdeprint/management/kmwlpd.cpp')
-rw-r--r--tdeprint/management/kmwlpd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tdeprint/management/kmwlpd.cpp b/tdeprint/management/kmwlpd.cpp
index be14d0aa5..631d4253b 100644
--- a/tdeprint/management/kmwlpd.cpp
+++ b/tdeprint/management/kmwlpd.cpp
@@ -81,12 +81,12 @@ bool checkLpdQueue(const char *host, const char *queue)
char res[64] = {0};
snprintf(res,64,"%c%s\n",(char)4,queue);
- if (sock.tqwriteBlock(res, strlen(res)) != (TQ_LONG)(strlen(res)))
+ if (sock.writeBlock(res, strlen(res)) != (TQ_LONG)(strlen(res)))
return false;
char buf[1024] = {0};
int n, tot(1);
- while ((n = sock.tqreadBlock(res, 63)) > 0)
+ while ((n = sock.readBlock(res, 63)) > 0)
{
res[n] = 0;
tot += n;