svn commit: r298764 - stable/10/sbin/fsck_ffs

2016-04-28 Thread Pedro F. Giffuni
Author: pfg Date: Fri Apr 29 03:04:56 2016 New Revision: 298764 URL: https://svnweb.freebsd.org/changeset/base/298764 Log: MFC r298551, r298679, r298680: fsck_ffs: use uint32_t for closedisk(). fs_ncg is of type uint32_t, and we were indexing it with an int. Fixed this using an

svn commit: r298763 - stable/10/usr.bin/patch

2016-04-28 Thread Pedro F. Giffuni
Author: pfg Date: Fri Apr 29 02:56:03 2016 New Revision: 298763 URL: https://svnweb.freebsd.org/changeset/base/298763 Log: MFC r298530: patch(1): avoid signed integer overflow when debugging. Integer i is used to index p_end of type LINENUM (actually long). Match the types. Modified: