Module Name:    src
Committed By:   joerg
Date:           Fri May 14 03:02:13 UTC 2010

Modified Files:
        src/external/bsd/libevent/dist: evdns.3

Log Message:
Proper markup for example. Use <> include style. Bump date.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/bsd/libevent/dist/evdns.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/libevent/dist/evdns.3
diff -u src/external/bsd/libevent/dist/evdns.3:1.1.1.1 src/external/bsd/libevent/dist/evdns.3:1.2
--- src/external/bsd/libevent/dist/evdns.3:1.1.1.1	Mon Nov  2 10:00:53 2009
+++ src/external/bsd/libevent/dist/evdns.3	Fri May 14 03:02:13 2010
@@ -1,4 +1,4 @@
-.\"	$NetBSD: evdns.3,v 1.1.1.1 2009/11/02 10:00:53 plunky Exp $
+.\"	$NetBSD: evdns.3,v 1.2 2010/05/14 03:02:13 joerg Exp $
 .\"
 .\"
 .\" Copyright (c) 2006 Niels Provos <[email protected]>
@@ -27,7 +27,7 @@
 .\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
 .\" ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd October 7, 2006
+.Dd May 14, 2010
 .Dt EVDNS 3
 .Os
 .Sh NAME
@@ -125,11 +125,13 @@
 them when they go down. Otherwise it will round robin between them.
 .Pp
 Quick start guide:
-  #include "evdns.h"
-  void callback(int result, char type, int count, int ttl,
+.Bd -literal -offset indent
+#include \*[Lt]evdns.h\*[Gt]
+void callback(int result, char type, int count, int ttl,
 	 void *addresses, void *arg);
-  evdns_resolv_conf_parse(DNS_OPTIONS_ALL, "/etc/resolv.conf");
-  evdns_resolve("www.hostname.com", 0, callback, NULL);
+evdns_resolv_conf_parse(DNS_OPTIONS_ALL, "/etc/resolv.conf");
+evdns_resolve("www.hostname.com", 0, callback, NULL);
+.Ed
 .Pp
 When the lookup is complete the callback function is called. The
 first argument will be one of the DNS_ERR_* defines in evdns.h.

Reply via email to