Changeset e80f9fc in code for dns.c


Ignore:
Timestamp:
Mar 10, 2014, 12:11:56 PM (11 years ago)
Author:
Mike Belopuhov <mike@…>
Branches:
master
Children:
7882a6f
Parents:
b6c9dd3
Message:

Convert dns_* functions to use icbd_log instead of syslog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dns.c

    rb6c9dd3 re80f9fc  
    3737
    3838struct async_event;
    39 struct async_event *
    40                 async_run_event(struct async *,
    41                     void (*)(int, struct async_res *, void *), void *);
    42 void            dns_done(int, struct async_res *, void *);
     39struct async_event *async_run_event(struct async *,
     40    void (*)(int, struct async_res *, void *), void *);
     41void dns_done(int, struct async_res *, void *);
    4342
    4443extern int dodns;
     
    5049
    5150        if (ar->ar_gai_errno == 0) {
    52                 syslog(LOG_DEBUG, "dns resolved %s to %s", is->host,
     51                icbd_log(is, LOG_DEBUG, "dns resolved %s to %s", is->host,
    5352                    is->hostname);
    5453                if (strncmp(is->hostname, "localhost",
     
    5857                        strlcpy(is->host, is->hostname, ICB_MAXHOSTLEN);
    5958        } else
    60                 syslog(LOG_WARNING, "dns resolution failed: %s",
     59                icbd_log(is, LOG_WARNING, "dns resolution failed: %s",
    6160                    gai_strerror(ar->ar_gai_errno));
    6261}
     
    7170
    7271        if (verbose)
    73                 syslog(LOG_DEBUG, "resolving: %s", is->host);
     72                icbd_log(is, LOG_DEBUG, "resolving: %s", is->host);
    7473
    7574        as = getnameinfo_async(sa, sa->sa_len, is->hostname,
Note: See TracChangeset for help on using the changeset viewer.