aboutsummaryrefslogtreecommitdiff
path: root/sbin/hastd/proto.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/hastd/proto.c')
-rw-r--r--sbin/hastd/proto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/hastd/proto.c b/sbin/hastd/proto.c
index 72c8c75d27da..452f82f0e124 100644
--- a/sbin/hastd/proto.c
+++ b/sbin/hastd/proto.c
@@ -131,7 +131,7 @@ proto_common_setup(const char *srcaddr, const char *dstaddr,
/*
* ret == 0 - success
* ret == -1 - dstaddr is not for this protocol
- * ret > 0 - right protocol, but an error occured
+ * ret > 0 - right protocol, but an error occurred
*/
if (ret >= 0)
break;
@@ -142,7 +142,7 @@ proto_common_setup(const char *srcaddr, const char *dstaddr,
return (-1);
}
if (ret > 0) {
- /* An error occured. */
+ /* An error occurred. */
errno = ret;
return (-1);
}