git: 0939cf32c0c1 - main - ipf/libipf: Fix typos
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 02 Jun 2023 02:33:42 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=0939cf32c0c180ac0e1974959da6962d16b96c7a
commit 0939cf32c0c180ac0e1974959da6962d16b96c7a
Author: Elyes Haouas <ehaouas@noos.fr>
AuthorDate: 2023-06-01 23:41:30 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-06-02 02:33:38 +0000
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
---
sbin/ipf/libipf/connecttcp.c | 2 +-
sbin/ipf/libipf/interror.c | 12 ++++++------
sbin/ipf/libipf/load_http.c | 2 +-
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)