svn commit: r288172 - stable/10/usr.bin/ar

Ed Maste emaste at FreeBSD.org
Thu Sep 24 12:47:32 UTC 2015


Author: emaste
Date: Thu Sep 24 12:47:31 2015
New Revision: 288172
URL: https://svnweb.freebsd.org/changeset/base/288172

Log:
  MFC r287327: ar: Deobfuscate a while loop

Modified:
  stable/10/usr.bin/ar/ar.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/usr.bin/ar/ar.c
==============================================================================
--- stable/10/usr.bin/ar/ar.c	Thu Sep 24 12:44:02 2015	(r288171)
+++ stable/10/usr.bin/ar/ar.c	Thu Sep 24 12:47:31 2015	(r288172)
@@ -141,7 +141,7 @@ main(int argc, char **argv)
 			ranlib_usage();
 
 		bsdar->options |= AR_S;
-		for (;(bsdar->filename = *argv++) != NULL;)
+		while ((bsdar->filename = *argv++) != NULL)
 			ar_mode_s(bsdar);
 
 		exit(EX_OK);


More information about the svn-src-all mailing list