mirror of https://github.com/getdnsapi/getdns.git
Use __FUNC__ instead of function for protability
It is #defined to __FUNCTION__ or to __func__ depending on what configure detected.
This commit is contained in:
parent
b3a06f1944
commit
4b6962cd9a
10
src/mdns.c
10
src/mdns.c
|
@ -83,7 +83,7 @@ static void
|
||||||
mdns_cleanup(getdns_network_req *netreq)
|
mdns_cleanup(getdns_network_req *netreq)
|
||||||
{
|
{
|
||||||
DEBUG_MDNS("%s %-35s: MSG: %p\n",
|
DEBUG_MDNS("%s %-35s: MSG: %p\n",
|
||||||
MDNS_DEBUG_CLEANUP, __FUNCTION__, netreq);
|
MDNS_DEBUG_CLEANUP, __FUNC__, netreq);
|
||||||
getdns_dns_req *dnsreq = netreq->owner;
|
getdns_dns_req *dnsreq = netreq->owner;
|
||||||
|
|
||||||
GETDNS_CLEAR_EVENT(dnsreq->loop, &netreq->event);
|
GETDNS_CLEAR_EVENT(dnsreq->loop, &netreq->event);
|
||||||
|
@ -109,7 +109,7 @@ mdns_timeout_cb(void *userarg)
|
||||||
{
|
{
|
||||||
getdns_network_req *netreq = (getdns_network_req *)userarg;
|
getdns_network_req *netreq = (getdns_network_req *)userarg;
|
||||||
DEBUG_MDNS("%s %-35s: MSG: %p\n",
|
DEBUG_MDNS("%s %-35s: MSG: %p\n",
|
||||||
MDNS_DEBUG_CLEANUP, __FUNCTION__, netreq);
|
MDNS_DEBUG_CLEANUP, __FUNC__, netreq);
|
||||||
|
|
||||||
/* TODO: do we need a retry logic here? */
|
/* TODO: do we need a retry logic here? */
|
||||||
|
|
||||||
|
@ -143,7 +143,7 @@ mdns_udp_read_cb(void *userarg)
|
||||||
getdns_dns_req *dnsreq = netreq->owner;
|
getdns_dns_req *dnsreq = netreq->owner;
|
||||||
ssize_t read;
|
ssize_t read;
|
||||||
DEBUG_MDNS("%s %-35s: MSG: %p \n", MDNS_DEBUG_READ,
|
DEBUG_MDNS("%s %-35s: MSG: %p \n", MDNS_DEBUG_READ,
|
||||||
__FUNCTION__, netreq);
|
__FUNC__, netreq);
|
||||||
|
|
||||||
GETDNS_CLEAR_EVENT(dnsreq->loop, &netreq->event);
|
GETDNS_CLEAR_EVENT(dnsreq->loop, &netreq->event);
|
||||||
|
|
||||||
|
@ -197,7 +197,7 @@ mdns_udp_write_cb(void *userarg)
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
DEBUG_MDNS("%s %-35s: MSG: %p \n", MDNS_DEBUG_WRITE,
|
DEBUG_MDNS("%s %-35s: MSG: %p \n", MDNS_DEBUG_WRITE,
|
||||||
__FUNCTION__, netreq);
|
__FUNC__, netreq);
|
||||||
|
|
||||||
GETDNS_CLEAR_EVENT(dnsreq->loop, &netreq->event);
|
GETDNS_CLEAR_EVENT(dnsreq->loop, &netreq->event);
|
||||||
|
|
||||||
|
@ -245,7 +245,7 @@ mdns_udp_write_cb(void *userarg)
|
||||||
getdns_return_t
|
getdns_return_t
|
||||||
_getdns_submit_mdns_request(getdns_network_req *netreq)
|
_getdns_submit_mdns_request(getdns_network_req *netreq)
|
||||||
{
|
{
|
||||||
DEBUG_MDNS("%s %-35s: MSG: %p TYPE: %d\n", MDNS_DEBUG_ENTRY, __FUNCTION__,
|
DEBUG_MDNS("%s %-35s: MSG: %p TYPE: %d\n", MDNS_DEBUG_ENTRY, __FUNC__,
|
||||||
netreq, netreq->request_type);
|
netreq, netreq->request_type);
|
||||||
int fd = -1;
|
int fd = -1;
|
||||||
getdns_dns_req *dnsreq = netreq->owner;
|
getdns_dns_req *dnsreq = netreq->owner;
|
||||||
|
|
Loading…
Reference in New Issue