pike.git / src / modules / _Protocols_DNS_SD / sd.c

version» Context lines:

pike.git/src/modules/_Protocols_DNS_SD/sd.c:111:    reason = "Bad interface index";    break;    default:    reason = "Unknown error";    break;    }    Pike_error("DNS_SD: %s Reason: %s (%d)\n", msg, reason, err);   }       - static void start_service_callback(DNSServiceRef ref, -  DNSServiceFlags flags, -  DNSServiceErrorType error, -  const char *name, -  const char *regtype, -  const char *domain, -  void *context) + static void start_service_callback(DNSServiceRef UNUSED(ref), +  DNSServiceFlags UNUSED(flags), +  DNSServiceErrorType UNUSED(error), +  const char *UNUSED(name), +  const char *UNUSED(regtype), +  const char *UNUSED(domain), +  void *UNUSED(context))   {   }         static DNSServiceErrorType start_service(struct service *svc,    char *name,    char *service,    char *domain,    int port,    char *txt,
pike.git/src/modules/_Protocols_DNS_SD/sd.c:363:    txtlen = txt ? sp[4 - args].u.string->len : 0;       /* Register new service */    err = start_service(THIS, name, service, domain, port, txt, txtlen);    if (IS_ERR(err))    raise_error("Could not register service.", err);    pop_n_elems(args);   }       - static void init_service_struct(struct object *o) + static void init_service_struct(struct object *UNUSED(o))   {    THIS->service_ref = 0;   }       - static void exit_service_struct(struct object *o) + static void exit_service_struct(struct object *UNUSED(o))   {    /* Stop an existing service */    stop_service(THIS);   }         PIKE_MODULE_INIT   {    start_new_program();