aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2023-06-01 23:41:30 +0000
committerWarner Losh <imp@FreeBSD.org>2023-06-02 02:33:38 +0000
commit0939cf32c0c180ac0e1974959da6962d16b96c7a (patch)
treedbbb6a599d79945120c14c2f1962b7e7fc59aaa0
parent79d4d7133f07b399155a4d2eb20a8ee1ca705569 (diff)
downloadsrc-0939cf32c0c180ac0e1974959da6962d16b96c7a.tar.gz
src-0939cf32c0c180ac0e1974959da6962d16b96c7a.zip
ipf/libipf: Fix typos
Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/653
-rw-r--r--sbin/ipf/libipf/connecttcp.c2
-rw-r--r--sbin/ipf/libipf/interror.c12
-rw-r--r--sbin/ipf/libipf/load_http.c2
3 files changed, 8 insertions, 8 deletions
diff --git a/sbin/ipf/libipf/connecttcp.c b/sbin/ipf/libipf/connecttcp.c
index 5e0d86c1d098..7ab9d3430f58 100644
--- a/sbin/ipf/libipf/connecttcp.c
+++ b/sbin/ipf/libipf/connecttcp.c
@@ -10,7 +10,7 @@
#include <ctype.h>
/*
- * Format expected is one addres per line, at the start of each line.
+ * Format expected is one address per line, at the start of each line.
*/
int
connecttcp(char *server, int port)
diff --git a/sbin/ipf/libipf/interror.c b/sbin/ipf/libipf/interror.c
index 994fb9d2b320..f59f4f633070 100644
--- a/sbin/ipf/libipf/interror.c
+++ b/sbin/ipf/libipf/interror.c
@@ -70,7 +70,7 @@ static ipf_error_entry_t ipf_errors[IPF_NUM_ERRORS] = {
{ 42, "ipfilter not enabled for NAT ioctl" },
{ 43, "ipfilter not enabled for state ioctl" },
{ 44, "ipfilter not enabled for auth ioctl" },
- { 45, "ipfilter not enbaled for sync ioctl" },
+ { 45, "ipfilter not enabled for sync ioctl" },
{ 46, "ipfilter not enabled for scan ioctl" },
{ 47, "ipfilter not enabled for lookup ioctl" },
{ 48, "unrecognised device minor number for ioctl" },
@@ -206,7 +206,7 @@ static ipf_error_entry_t ipf_errors[IPF_NUM_ERRORS] = {
{ 30002, "could not malloc memory for new hash table" },
{ 30003, "error coping in hash table structure" },
{ 30004, "hash table already exists" },
- { 30005, "mismach between new hash table and operation unit" },
+ { 30005, "mismatch between new hash table and operation unit" },
{ 30006, "could not malloc memory for hash table base" },
{ 30007, "could not find hash table" },
{ 30008, "mismatch between hash table and operation unit" },
@@ -229,7 +229,7 @@ static ipf_error_entry_t ipf_errors[IPF_NUM_ERRORS] = {
{ 30025, "hash table size must be at least 1"},
{ 30026, "cannot allocate memory for hash table context" },
/* -------------------------------------------------------------------------- */
- { 40001, "invalid minor device numebr for log read" },
+ { 40001, "invalid minor device number for log read" },
{ 40002, "read size too small" },
{ 40003, "interrupted waiting for log data to read" },
{ 40004, "interrupted waiting for log data to read" },
@@ -276,7 +276,7 @@ static ipf_error_entry_t ipf_errors[IPF_NUM_ERRORS] = {
{ 50038, "invalid unit for lookup iterator" },
{ 50039, "invalid unit for lookup iterator" },
{ 50040, "could not find token for lookup iterator" },
- { 50041, "unrecognised object type for lookup interator" },
+ { 50041, "unrecognised object type for lookup iterator" },
{ 50042, "error copying in lookup delete node operation" },
/* -------------------------------------------------------------------------- */
{ 60001, "insufficient privilege for NAT write operation" },
@@ -333,7 +333,7 @@ log" },
{ 60051, "iterator error copying out NAT entry data" },
{ 60052, "iterator data supplied with NULL pointer" },
{ 60053, "unknown NAT iterator type" },
- { 60054, "unknwon next address type" },
+ { 60054, "unknown next address type" },
{ 60055, "iterator suppled with unknown type for get-next" },
{ 60056, "unknown lookup group for next address" },
{ 60057, "error copying out NAT log flush results" },
@@ -419,7 +419,7 @@ log" },
{ 100006, "" },
{ 100007, "" },
{ 100008, "need write permissions to flush state log" },
- { 100009, "erorr copyout results of flushing state log" },
+ { 100009, "error copyout results of flushing state log" },
{ 100010, "need write permissions to turn state logging on/off" },
{ 100011, "error copying in new state logging state" },
{ 100012, "error copying out current state logging state" },
diff --git a/sbin/ipf/libipf/load_http.c b/sbin/ipf/libipf/load_http.c
index 738a6f8006f9..9b416bde003c 100644
--- a/sbin/ipf/libipf/load_http.c
+++ b/sbin/ipf/libipf/load_http.c
@@ -25,7 +25,7 @@
#define LOAD_BUFSIZE (MAX_URL_LEN * 2 + 128)
/*
- * Format expected is one addres per line, at the start of each line.
+ * Format expected is one address per line, at the start of each line.
*/
alist_t *
load_http(char *url)