summaryrefslogtreecommitdiffstats
path: root/examples/client-publish-service.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/client-publish-service.c')
-rw-r--r--examples/client-publish-service.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/client-publish-service.c b/examples/client-publish-service.c
index 9b12f5c..c3f11ad 100644
--- a/examples/client-publish-service.c
+++ b/examples/client-publish-service.c
@@ -83,13 +83,13 @@ static void create_services(AvahiClient *c) {
snprintf(r, sizeof(r), "random=%i", rand());
/* Add the service for IPP */
- if ((ret = avahi_entry_group_add_service(group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, name, "_ipp._tcp", NULL, NULL, 651, "test=blah", r, NULL)) < 0) {
+ if ((ret = avahi_entry_group_add_service(group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, name, "_ipp._tcp", NULL, NULL, 651, "test=blah", r, NULL)) < 0) {
fprintf(stderr, "Failed to add _ipp._tcp service: %s\n", avahi_strerror(ret));
goto fail;
}
/* Add the same service for BSD LPR */
- if ((ret = avahi_entry_group_add_service(group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, name, "_printer._tcp", NULL, NULL, 515, NULL)) < 0) {
+ if ((ret = avahi_entry_group_add_service(group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, name, "_printer._tcp", NULL, NULL, 515, NULL)) < 0) {
fprintf(stderr, "Failed to add _printer._tcp service: %s\n", avahi_strerror(ret));
goto fail;
}