Description: fixes some spelling errors
Author: Marcio de Souza Oliveira <marciosouza@debian.org>
Last-Update: 2019-09-20
Index: dns2tcp/common/config.c
===================================================================
--- dns2tcp.orig/common/config.c
+++ dns2tcp/common/config.c
@@ -153,7 +153,7 @@ int	read_config(char *file, void *conf,
     }
   if (!(my_file = fopen(file, "r")))
     {
-      DPRINTF(1, "Warn cannot openning config file \'%s\'\n", file);
+      DPRINTF(1, "Warn cannot opening config file \'%s\'\n", file);
       return (-1);
     }
   config_extract_token(my_file, conf, copy_func);
Index: dns2tcp/client/queue.c
===================================================================
--- dns2tcp.orig/client/queue.c
+++ dns2tcp/client/queue.c
@@ -510,7 +510,7 @@ int			queue_get_udp_data(t_conf *conf, c
 		      */
 		      if (client->control.cumul_errors++ > MAX_CLIENT_ERROR)
 			{
-			  DPRINTF(1, "Too many packets lost. Reseting connection ...\n");
+			  DPRINTF(1, "Too many packets lost. Resetting connection ...\n");
 			  return (delete_client(conf, client));
 			}
 		    }
@@ -535,7 +535,7 @@ int			queue_get_udp_data(t_conf *conf, c
 	    }
 	}
     }
-  DPRINTF(2, "received reply for unknow request 0x%x \n",  ntohs(hdr->id));
+  DPRINTF(2, "received reply for unknown request 0x%x \n",  ntohs(hdr->id));
   return (0);
 }
 
Index: dns2tcp/man/dns2tcpc.1
===================================================================
--- dns2tcp.orig/man/dns2tcpc.1
+++ dns2tcp/man/dns2tcpc.1
@@ -77,14 +77,14 @@ Request type to use. Actually only KEY a
 Command to execute, I/O are redirected in the tunnel.
 .TP
 \fB\-l\fR \fBlocal_port\fR
-Local port accepting incomming connections (or - for stdin on UNIX systems). 
+Local port accepting incoming connections (or - for stdin on UNIX systems). 
 .TP
 \fB\-t\fR \fBconnection timeout\fR
 Maximum DNS server's answer delay in seconds. A valid delay
 is between 1 and 240 seconds. Default is 3.
 .TP
 \fBserver\fR
-DNS server to use. The first entry in resolv.conf file will be choosen if the server is not specified.
+DNS server to use. The first entry in resolv.conf file will be chosen if the server is not specified.
 
 .SH CONFIGURATION FILES
 By default ${HOME}/.dns2tcprc is used if no configuration file is
Index: dns2tcp/server/requests.c
===================================================================
--- dns2tcp.orig/server/requests.c
+++ dns2tcp/server/requests.c
@@ -112,7 +112,7 @@ int			send_resources_reply(t_conf *conf,
 	  if ((!(ressource_len = req->reply_functions->rr_available_len(hdr, client, answer_len)))
 	      || (strlen(list->data) > ressource_len))
 	    {
-	      LOG("Not enought space to send resources, message will be truncated\n");
+	      LOG("Not enough space to send resources, message will be truncated\n");
 	      break;
 	    }
 	  strcpy(&buffer2[PACKET_LEN], list->data); 
Index: dns2tcp/client/options.c
===================================================================
--- dns2tcp.orig/client/options.c
+++ dns2tcp/client/options.c
@@ -148,7 +148,7 @@ static int	client_copy_param(void *my_co
 	return ((int) (conf->resource ? 0 : !!(conf->resource = buffer)));
       if (!strcmp(token, "ressource"))
 	{
-	  fprintf(stderr, "Warning : Incorrect ressource syntax in config file (should be resource)\n");
+	  fprintf(stderr, "Warning : Incorrect resource syntax in config file (should be resource)\n");
 	  return ((int) (conf->resource ? 0 : !!(conf->resource = buffer)));
 	}
     }
Index: dns2tcp/server/options.c
===================================================================
--- dns2tcp.orig/server/options.c
+++ dns2tcp/server/options.c
@@ -144,7 +144,7 @@ static int	server_copy_param(void *my_co
 	return (add_resource(conf, buffer));
       if (!strcmp(token, "ressources"))
 	{
-	  fprintf(stderr, "Warning : Incorrect ressources syntax in config file (should be resources)\n");
+	  fprintf(stderr, "Warning : Incorrect resources syntax in config file (should be resources)\n");
 	  return (add_resource(conf, buffer));
 	}
     }
