summaryrefslogtreecommitdiff
path: root/scheduler/cups-lpd.c
diff options
context:
space:
mode:
authorMichael Sweet <michael.r.sweet@gmail.com>2017-06-08 14:19:45 -0400
committerMichael Sweet <michael.r.sweet@gmail.com>2017-06-08 14:19:45 -0400
commit0668b48c105b66e84e8513a3a972471b65f1302c (patch)
treeb7a4572661d2efcba21ec25e50d65283957d4340 /scheduler/cups-lpd.c
parent718ee2fff3cfeedf69dedf4ca68b14e2f49ff8c6 (diff)
downloadcups-0668b48c105b66e84e8513a3a972471b65f1302c.tar.gz
Switch to newer xpc_transaction APIs.
Diffstat (limited to 'scheduler/cups-lpd.c')
-rw-r--r--scheduler/cups-lpd.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/scheduler/cups-lpd.c b/scheduler/cups-lpd.c
index 8d2ea4917..5d5e6f894 100644
--- a/scheduler/cups-lpd.c
+++ b/scheduler/cups-lpd.c
@@ -29,7 +29,7 @@
# include <inttypes.h>
#endif /* HAVE_INTTYPES_H */
#ifdef __APPLE__
-# include <vproc.h>
+# include <xpc/xpc.h>
#endif /* __APPLE__ */
@@ -97,8 +97,10 @@ main(int argc, /* I - Number of command-line arguments */
hostip[256], /* IP address */
*hostfamily; /* Address family */
int hostlookups; /* Do hostname lookups? */
+
+
#ifdef __APPLE__
- vproc_transaction_t vtran = vproc_transaction_begin(NULL);
+ xpc_transaction_begin();
#endif /* __APPLE__ */
@@ -217,7 +219,7 @@ main(int argc, /* I - Number of command-line arguments */
putchar(1);
#ifdef __APPLE__
- vproc_transaction_end(NULL, vtran);
+ xpc_transaction_end();
#endif /* __APPLE__ */
return (1);
@@ -313,7 +315,7 @@ main(int argc, /* I - Number of command-line arguments */
closelog();
#ifdef __APPLE__
- vproc_transaction_end(NULL, vtran);
+ xpc_transaction_end();
#endif /* __APPLE__ */
return (status);