aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2019-11-09 21:59:29 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2019-11-09 21:59:29 +0000
commit1802a6b5b87888277c30873610dd7dc6f70eef9e (patch)
tree48887413f562e936990a63df4f0603de68fd5701 /lib
parentb5961be1ab74b2824ba79d511562aec5c81fe62b (diff)
downloadsrc-1802a6b5b87888277c30873610dd7dc6f70eef9e.tar.gz
src-1802a6b5b87888277c30873610dd7dc6f70eef9e.zip
libipsec: correct a typo
Correct a typo in the ipsec_errlist and replicated in a comment. No functional changes. MFC after: 3 weeks
Notes
Notes: svn path=/head/; revision=354572
Diffstat (limited to 'lib')
-rw-r--r--lib/libipsec/ipsec_strerror.c2
-rw-r--r--lib/libipsec/ipsec_strerror.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/libipsec/ipsec_strerror.c b/lib/libipsec/ipsec_strerror.c
index 6e7e9c6c29d2..4e304bc97018 100644
--- a/lib/libipsec/ipsec_strerror.c
+++ b/lib/libipsec/ipsec_strerror.c
@@ -62,7 +62,7 @@ static const char *ipsec_errlist[] = {
"Invalid key length", /*EIPSEC_INVAL_KEYLEN*/
"Invalid address family", /*EIPSEC_INVAL_FAMILY*/
"Invalid prefix length", /*EIPSEC_INVAL_PREFIXLEN*/
-"Invalid direciton", /*EIPSEC_INVAL_DIR*/
+"Invalid direction", /*EIPSEC_INVAL_DIR*/
"SPI range violation", /*EIPSEC_INVAL_SPI*/
"No protocol specified", /*EIPSEC_NO_PROTO*/
"No algorithm specified", /*EIPSEC_NO_ALGS*/
diff --git a/lib/libipsec/ipsec_strerror.h b/lib/libipsec/ipsec_strerror.h
index 3a1a5536743a..3eed691eeb75 100644
--- a/lib/libipsec/ipsec_strerror.h
+++ b/lib/libipsec/ipsec_strerror.h
@@ -52,7 +52,7 @@ extern void __ipsec_set_strerror(const char *);
#define EIPSEC_INVAL_KEYLEN 14 /*invalid key length*/
#define EIPSEC_INVAL_FAMILY 15 /*invalid address family*/
#define EIPSEC_INVAL_PREFIXLEN 16 /*SPI range violation*/
-#define EIPSEC_INVAL_DIR 17 /*Invalid direciton*/
+#define EIPSEC_INVAL_DIR 17 /*Invalid direction*/
#define EIPSEC_INVAL_SPI 18 /*invalid prefixlen*/
#define EIPSEC_NO_PROTO 19 /*no protocol specified*/
#define EIPSEC_NO_ALGS 20 /*No algorithm specified*/