Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 May 2020 20:53:45 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r360673 - stable/11/libexec/rshd
Message-ID:  <202005052053.045Krjap088496@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Tue May  5 20:53:45 2020
New Revision: 360673
URL: https://svnweb.freebsd.org/changeset/base/360673

Log:
  Fix misleading indentation warning:
  
  libexec/rshd/rshd.c:442:5: error: misleading indentation; statement is not part of the previous 'else' [-Werror,-Wmisleading-indentation]
                                  ioctl(pv[0], FIONBIO, (char *)&one);
                                  ^
  libexec/rshd/rshd.c:440:4: note: previous statement is here
                          else
                          ^
  
  Direct commit to stable/11, since rshd has been removed from FreeBSD 12
  and later.

Modified:
  stable/11/libexec/rshd/rshd.c

Modified: stable/11/libexec/rshd/rshd.c
==============================================================================
--- stable/11/libexec/rshd/rshd.c	Tue May  5 20:45:54 2020	(r360672)
+++ stable/11/libexec/rshd/rshd.c	Tue May  5 20:53:45 2020	(r360673)
@@ -439,7 +439,7 @@ doit(struct sockaddr *fromp)
 				nfd = pv[0];
 			else
 				nfd = s;
-				ioctl(pv[0], FIONBIO, (char *)&one);
+			ioctl(pv[0], FIONBIO, (char *)&one);
 
 			/* should set s nbio! */
 			nfd++;



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