Module Name:    src
Committed By:   joerg
Date:           Sat Apr 11 15:29:51 UTC 2009

Modified Files:
        src/lib/libevent: evdns.3

Log Message:
Improve markup.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libevent/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/lib/libevent/evdns.3
diff -u src/lib/libevent/evdns.3:1.1 src/lib/libevent/evdns.3:1.2
--- src/lib/libevent/evdns.3:1.1	Fri May 16 20:24:57 2008
+++ src/lib/libevent/evdns.3	Sat Apr 11 15:29:50 2009
@@ -1,4 +1,4 @@
-.\"	$NetBSD: evdns.3,v 1.1 2008/05/16 20:24:57 peter Exp $
+.\"	$NetBSD: evdns.3,v 1.2 2009/04/11 15:29:50 joerg Exp $
 .\"
 .\" Copyright (c) 2006 Niels Provos <pro...@citi.umich.edu>
 .\" All rights reserved.
@@ -121,11 +121,14 @@
 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,
-	 void *addresses, void *arg);
-  evdns_resolv_conf_parse(DNS_OPTIONS_ALL, "/etc/resolv.conf");
-  evdns_resolve("www.hostname.com", 0, callback, NULL);
+.Bd -literal
+#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);
+.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