ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/evdns.c
(Generate patch)

Comparing libev/evdns.c (file contents):
Revision 1.1 by root, Thu Nov 1 15:46:43 2007 UTC vs.
Revision 1.13 by root, Mon Nov 5 16:42:15 2007 UTC

1/* $Id: evdns.c,v 1.1 2007/11/01 15:46:43 root Exp $ */ 1/* $Id: evdns.c,v 1.13 2007/11/05 16:42:15 root Exp $ */
2 2
3/* The original version of this module was written by Adam Langley; for 3/* The original version of this module was written by Adam Langley; for
4 * a history of modifications, check out the subversion logs. 4 * a history of modifications, check out the subversion logs.
5 * 5 *
6 * When editing this module, try to keep it re-mergeable by Adam. Don't 6 * When editing this module, try to keep it re-mergeable by Adam. Don't
38#ifdef HAVE_CONFIG_H 38#ifdef HAVE_CONFIG_H
39#include "config.h" 39#include "config.h"
40#endif 40#endif
41 41
42#ifdef WIN32 42#ifdef WIN32
43#ifndef EV_STANDALONE
43#include "misc.h" 44#include "misc.h"
45#endif
44#endif 46#endif
45 47
46/* #define NDEBUG */ 48/* #define NDEBUG */
47 49
48#ifndef DNS_USE_CPU_CLOCK_FOR_ID 50#ifndef DNS_USE_CPU_CLOCK_FOR_ID
92#include <ctype.h> 94#include <ctype.h>
93#include <stdio.h> 95#include <stdio.h>
94#include <stdarg.h> 96#include <stdarg.h>
95 97
96#include "evdns.h" 98#include "evdns.h"
97/*#include "log.h"*/
98#ifdef WIN32 99#ifdef WIN32
99#include <windows.h> 100#include <windows.h>
100#include <winsock2.h> 101#include <winsock2.h>
101#include <iphlpapi.h> 102#include <iphlpapi.h>
102#else 103#else
2265 request_submit(req); 2266 request_submit(req);
2266 return 0; 2267 return 0;
2267} 2268}
2268 2269
2269int evdns_resolve_reverse_ipv6(struct in6_addr *in, int flags, evdns_callback_type callback, void *ptr) { 2270int evdns_resolve_reverse_ipv6(struct in6_addr *in, int flags, evdns_callback_type callback, void *ptr) {
2270 char buf[64]; 2271 char buf[96];
2271 char *cp; 2272 char *cp;
2272 struct request *req; 2273 struct request *req;
2273 int i; 2274 int i;
2274 assert(in); 2275 assert(in);
2275 cp = buf; 2276 cp = buf;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines