Changeset c478b725380bce173a7b7f4582ecdbd588b7a24b

Show
Ignore:
Timestamp:
12/20/08 16:05:43 (6 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1229789143 +0000
git-parent:

[34d5218246db8417132e61067ed84d5eb45b1c11]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1229789143 +0000
Message:

fixes #70

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/udns/Makefile.in

    r1a995b1 rc478b72  
    7171AWK = awk 
    7272 
    73 all: static libudns.o 
     73all: libudns.o 
    7474 
    7575.SUFFIXES: .c .o .lo 
  • src/udns/udns.h

    r5a9b91b rc478b72  
    234234}; 
    235235 
    236 static __inline unsigned dns_get16(dnscc_t *s) { 
     236static inline unsigned dns_get16(dnscc_t *s) { 
    237237  return ((unsigned)s[0]<<8) | s[1]; 
    238238} 
    239 static __inline unsigned dns_get32(dnscc_t *s) { 
     239static inline unsigned dns_get32(dnscc_t *s) { 
    240240  return ((unsigned)s[0]<<24) | ((unsigned)s[1]<<16) 
    241241        | ((unsigned)s[2]<<8) | s[3]; 
    242242} 
    243 static __inline dnsc_t *dns_put16(dnsc_t *d, unsigned n) { 
     243static inline dnsc_t *dns_put16(dnsc_t *d, unsigned n) { 
    244244  *d++ = (dnsc_t)((n >> 8) & 255); *d++ = (dnsc_t)(n & 255); return d; 
    245245} 
    246 static __inline dnsc_t *dns_put32(dnsc_t *d, unsigned n) { 
     246static inline dnsc_t *dns_put32(dnsc_t *d, unsigned n) { 
    247247  *d++ = (dnsc_t)((n >> 24) & 255); *d++ = (dnsc_t)((n >> 16) & 255); 
    248248  *d++ = (dnsc_t)((n >>  8) & 255); *d++ = (dnsc_t)(n & 255); 
  • src/udns/udns_resolver.c

    r5a9b91b rc478b72  
    9292/* working with dns_query lists */ 
    9393 
    94 static __inline void qlist_init(struct dns_qlink *list) { 
     94static inline void qlist_init(struct dns_qlink *list) { 
    9595  list->next = list->prev = (struct dns_query *)list; 
    9696} 
    9797 
    98 static __inline int qlist_isempty(const struct dns_qlink *list) { 
     98static inline int qlist_isempty(const struct dns_qlink *list) { 
    9999  return list->next == (const struct dns_query *)list ? 1 : 0; 
    100100} 
    101101 
    102 static __inline struct dns_query *qlist_first(struct dns_qlink *list) { 
     102static inline struct dns_query *qlist_first(struct dns_qlink *list) { 
    103103  return list->next == (struct dns_query *)list ? 0 : list->next; 
    104104} 
    105105 
    106 static __inline void qlist_remove(struct dns_query *q) { 
     106static inline void qlist_remove(struct dns_query *q) { 
    107107  q->dnsq_link.next->dnsq_link.prev = q->dnsq_link.prev; 
    108108  q->dnsq_link.prev->dnsq_link.next = q->dnsq_link.next; 
     
    110110 
    111111/* insert q between prev and next */ 
    112 static __inline void 
     112static inline void 
    113113qlist_insert(struct dns_query *q, 
    114114             struct dns_query *prev, struct dns_query *next) { 
     
    118118} 
    119119 
    120 static __inline void 
     120static inline void 
    121121qlist_insert_after(struct dns_query *q, struct dns_query *prev) { 
    122122  qlist_insert(q, prev, prev->dnsq_link.next); 
    123123} 
    124124 
    125 static __inline void 
     125static inline void 
    126126qlist_insert_before(struct dns_query *q, struct dns_query *next) { 
    127127  qlist_insert(q, next->dnsq_link.prev, next); 
    128128} 
    129129 
    130 static __inline void 
     130static inline void 
    131131qlist_add_tail(struct dns_query *q, struct dns_qlink *top) { 
    132132  qlist_insert_before(q, (struct dns_query *)top); 
    133133} 
    134134 
    135 static __inline void 
     135static inline void 
    136136qlist_add_head(struct dns_query *q, struct dns_qlink *top) { 
    137137  qlist_insert_after(q, (struct dns_query *)top); 
     
    385385} 
    386386 
    387 static __inline void 
     387static inline void 
    388388dns_request_utm(struct dns_ctx *ctx, time_t now) { 
    389389  if (ctx->dnsc_utmfn)