aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorokan2017-12-07 15:39:47 +0000
committerokan2017-12-07 15:39:47 +0000
commit8b913876e3d914a8a91217c708f0ddff69b7f7a3 (patch)
treea27039349d2ca8c77150fdd66ad6bcf428e57cad
parent17d1b3cbb69ad2e27ba8701380d36d8f78d1609f (diff)
downloadcwm-8b913876e3d914a8a91217c708f0ddff69b7f7a3.tar.gz
spacing
-rw-r--r--kbfunc.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/kbfunc.c b/kbfunc.c
index 13460e3..a645f54 100644
--- a/kbfunc.c
+++ b/kbfunc.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: kbfunc.c,v 1.150 2017/11/30 18:18:51 okan Exp $
+ * $OpenBSD: kbfunc.c,v 1.151 2017/12/07 15:39:47 okan Exp $
*/
#include <sys/types.h>
@@ -628,9 +628,8 @@ kbfunc_menu_ssh(void *ctx, struct cargs *cargs)
/* skip hashed hosts */
if (strncmp(buf, HASH_MARKER, strlen(HASH_MARKER)) == 0)
continue;
- for (p = buf; *p != ',' && *p != ' ' && p != buf + slen; p++) {
- /* do nothing */
- }
+ for (p = buf; *p != ',' && *p != ' ' && p != buf + slen; p++)
+ ;
/* ignore badness */
if (p - buf + 1 > sizeof(hostbuf))
continue;