Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Oct 2018 05:57:27 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r339178 - head/contrib/openbsm/bin/auditdistd
Message-ID:  <201810040557.w945vRSp002595@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pjd
Date: Thu Oct  4 05:57:27 2018
New Revision: 339178
URL: https://svnweb.freebsd.org/changeset/base/339178

Log:
  Remove invalid comments and correct some typos.
  
  Approved by:	re (kib)

Modified:
  head/contrib/openbsm/bin/auditdistd/receiver.c
  head/contrib/openbsm/bin/auditdistd/sender.c

Modified: head/contrib/openbsm/bin/auditdistd/receiver.c
==============================================================================
--- head/contrib/openbsm/bin/auditdistd/receiver.c	Thu Oct  4 05:54:57 2018	(r339177)
+++ head/contrib/openbsm/bin/auditdistd/receiver.c	Thu Oct  4 05:57:27 2018	(r339178)
@@ -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);

Modified: head/contrib/openbsm/bin/auditdistd/sender.c
==============================================================================
--- head/contrib/openbsm/bin/auditdistd/sender.c	Thu Oct  4 05:54:57 2018	(r339177)
+++ head/contrib/openbsm/bin/auditdistd/sender.c	Thu Oct  4 05:57:27 2018	(r339178)
@@ -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)
 {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810040557.w945vRSp002595>