From cb5f73d269f22ecad026caaff7a27e38abc4d15b Mon Sep 17 00:00:00 2001 From: Jakub Wilk Date: Mon, 12 Oct 2015 14:59:01 +0200 Subject: [PATCH] Fix typos Signed-off-by: Jakub Wilk --- ChangeLog | 2 +- doc/resolv_wrapper.1 | 2 +- doc/resolv_wrapper.1.txt | 2 +- src/resolv_wrapper.c | 4 ++-- 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, -- 2.6.1