aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Wilk <jwilk@jwilk.net>2015-10-12 14:59:01 +0200
committerAndreas Schneider <asn@samba.org>2015-10-12 17:37:56 +0200
commit01f13dd14cccb360e2220cb42f955ee8493934e4 (patch)
treed955800c6126c6faefb196093510b4099bd8bec0
parenta8056352b92e698bcf053cac5e100a860d2896c0 (diff)
downloadresolv_wrapper-01f13dd14cccb360e2220cb42f955ee8493934e4.tar.gz
resolv_wrapper-01f13dd14cccb360e2220cb42f955ee8493934e4.tar.xz
resolv_wrapper-01f13dd14cccb360e2220cb42f955ee8493934e4.zip
Fix typos
Signed-off-by: Jakub Wilk <jwilk@jwilk.net> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
-rw-r--r--ChangeLog2
-rw-r--r--doc/resolv_wrapper.12
-rw-r--r--doc/resolv_wrapper.1.txt2
-rw-r--r--src/resolv_wrapper.c4
4 files changed, 5 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 08cbfa6..0c4e25b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -14,7 +14,7 @@ version 1.1.1 (released 2015-01-12)
* Fix a possible segfault.
version 1.1.0 (released 2014-12-02)
- * Added case insensitive comparsion of dns names (dns faking).
+ * Added case insensitive comparison of dns names (dns faking).
* Added support complete dns names (trailing dot) (dns faking).
* Added support for recursive name resolving (dns faking).
* Fixed calculation of response size (dns faking).
diff --git a/doc/resolv_wrapper.1 b/doc/resolv_wrapper.1
index 2691964..5219713 100644
--- a/doc/resolv_wrapper.1
+++ b/doc/resolv_wrapper.1
@@ -34,7 +34,7 @@ resolv_wrapper \- A wrapper for dns name resolving or dns faking\&.
LD_PRELOAD=libresolv_wrapper\&.so RESOLV_WRAPPER_CONF="/path/to/resolv\&.conf" \fB\&./myapplication\fR
.SH "DESCRIPTION"
.sp
-resolv_wrapper makes it possible on most UNIX platforms to contact your own DNS implmentation in your test environment\&. It requires socket_wrapper to be able to contact it\&. If it doesn\(cqt work on a special platform the wrapper is able to fake DNS queries and return valid responses to your application\&.
+resolv_wrapper makes it possible on most UNIX platforms to contact your own DNS implementation in your test environment\&. It requires socket_wrapper to be able to contact it\&. If it doesn\(cqt work on a special platform the wrapper is able to fake DNS queries and return valid responses to your application\&.
.sp
.RS 4
.ie n \{\
diff --git a/doc/resolv_wrapper.1.txt b/doc/resolv_wrapper.1.txt
index e2e6837..12f96d0 100644
--- a/doc/resolv_wrapper.1.txt
+++ b/doc/resolv_wrapper.1.txt
@@ -16,7 +16,7 @@ DESCRIPTION
-----------
resolv_wrapper makes it possible on most UNIX platforms to contact your own DNS
-implmentation in your test environment. It requires socket_wrapper to be able
+implementation in your test environment. It requires socket_wrapper to be able
to contact it.
If it doesn't work on a special platform the wrapper is able to fake DNS queries
and return valid responses to your application.
diff --git a/src/resolv_wrapper.c b/src/resolv_wrapper.c
index d6a17cf..77baa45 100644
--- a/src/resolv_wrapper.c
+++ b/src/resolv_wrapper.c
@@ -340,7 +340,7 @@ static ssize_t rwrap_fake_header(uint8_t **header_blob, size_t remaining,
h->id = res_randomid(); /* random query ID */
h->qr = 1; /* response flag */
h->rd = 1; /* recursion desired */
- h->ra = 1; /* resursion available */
+ h->ra = 1; /* recursion available */
h->qdcount = htons(1); /* no. of questions */
h->ancount = htons(ancount); /* no. of answers */
@@ -911,7 +911,7 @@ static ssize_t rwrap_fake_answer(struct rwrap_fake_rr *rrs,
/* Reads in a file in the following format:
* TYPE RDATA
*
- * Malformed entried are silently skipped.
+ * Malformed entries are silently skipped.
* Allocates answer buffer of size anslen that has to be freed after use.
*/
static int rwrap_res_fake_hosts(const char *hostfile,