aboutsummaryrefslogtreecommitdiff
path: root/contrib/openbsm
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2018-10-04 05:57:27 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2018-10-04 05:57:27 +0000
commit58554c8d88ba1a069bbda55dcec4ea96db0aec71 (patch)
treec73aef1eb2b07385cc31b900416d178afbb1ca9e /contrib/openbsm
parent0785e8cedcf73c77690bf682eef3307f389751f3 (diff)
downloadsrc-58554c8d88ba1a069bbda55dcec4ea96db0aec71.tar.gz
src-58554c8d88ba1a069bbda55dcec4ea96db0aec71.zip
Remove invalid comments and correct some typos.
Approved by: re (kib)
Notes
Notes: svn path=/head/; revision=339178
Diffstat (limited to 'contrib/openbsm')
-rw-r--r--contrib/openbsm/bin/auditdistd/receiver.c2
-rw-r--r--contrib/openbsm/bin/auditdistd/sender.c9
2 files changed, 2 insertions, 9 deletions
diff --git a/contrib/openbsm/bin/auditdistd/receiver.c b/contrib/openbsm/bin/auditdistd/receiver.c
index 9dc3b0184c63..38cf2d448d42 100644
--- a/contrib/openbsm/bin/auditdistd/receiver.c
+++ b/contrib/openbsm/bin/auditdistd/receiver.c
@@ -140,7 +140,7 @@ static void
adreq_decode_and_validate_header(struct adreq *adreq)
{
- /* Byte-swap only is the sender is using different byte order. */
+ /* Byte-swap only if the sender is using different byte order. */
if (adreq->adr_byteorder != ADIST_BYTEORDER) {
adreq->adr_byteorder = ADIST_BYTEORDER;
adreq->adr_seq = bswap64(adreq->adr_seq);
diff --git a/contrib/openbsm/bin/auditdistd/sender.c b/contrib/openbsm/bin/auditdistd/sender.c
index 09420f2a52ce..c19fd93d5a3f 100644
--- a/contrib/openbsm/bin/auditdistd/sender.c
+++ b/contrib/openbsm/bin/auditdistd/sender.c
@@ -512,9 +512,6 @@ keepalive_send(void)
pjdlog_debug(3, "keepalive_send: Request sent.");
}
-/*
- * Thread sends request to secondary node.
- */
static void *
send_thread(void *arg __unused)
{
@@ -574,7 +571,7 @@ static void
adrep_decode_header(struct adrep *adrep)
{
- /* Byte-swap only is the receiver is using different byte order. */
+ /* Byte-swap only if the receiver is using different byte order. */
if (adrep->adrp_byteorder != ADIST_BYTEORDER) {
adrep->adrp_byteorder = ADIST_BYTEORDER;
adrep->adrp_seq = bswap64(adrep->adrp_seq);
@@ -582,10 +579,6 @@ adrep_decode_header(struct adrep *adrep)
}
}
-/*
- * Thread receives answer from secondary node and passes it to ggate_send
- * thread.
- */
static void *
recv_thread(void *arg __unused)
{