svn commit: r301496 - in head: sbin/ifconfig share/man/man4 sys/net sys/sys

2016-06-06 Thread Marcelo Araujo
Author: araujo Date: Mon Jun 6 09:51:58 2016 New Revision: 301496 URL: https://svnweb.freebsd.org/changeset/base/301496 Log: Add support to priority code point (PCP) that is an 3-bit field which refers to IEEE 802.1p class of service and maps to the frame priority level. Values in

svn commit: r301482 - head/usr.sbin/bluetooth/btpand

2016-06-05 Thread Marcelo Araujo
Author: araujo Date: Mon Jun 6 04:18:56 2016 New Revision: 301482 URL: https://svnweb.freebsd.org/changeset/base/301482 Log: For pointers use NULL instead of 0. Modified: head/usr.sbin/bluetooth/btpand/btpand.c Modified: head/usr.sbin/bluetooth/btpand/btpand.c

svn commit: r301481 - head/etc/rc.d

2016-06-05 Thread Marcelo Araujo
Author: araujo Date: Mon Jun 6 04:13:49 2016 New Revision: 301481 URL: https://svnweb.freebsd.org/changeset/base/301481 Log: Connect ypldap(8) script on Makefile, forgotten on my previous commit r301480. Modified: head/etc/rc.d/Makefile Modified: head/etc/rc.d/Makefile

svn commit: r301480 - in head/etc: defaults rc.d

2016-06-05 Thread Marcelo Araujo
Author: araujo Date: Mon Jun 6 03:55:00 2016 New Revision: 301480 URL: https://svnweb.freebsd.org/changeset/base/301480 Log: Add rc.d script for ypldap(8). Added: head/etc/rc.d/ypldap (contents, props changed) Modified: head/etc/defaults/rc.conf Modified: head/etc/defaults/rc.conf

svn commit: r301479 - in head: etc/mtree share/examples

2016-06-05 Thread Marcelo Araujo
Author: araujo Date: Mon Jun 6 02:43:41 2016 New Revision: 301479 URL: https://svnweb.freebsd.org/changeset/base/301479 Log: Install/Connect ypldap.conf(5) on examples. Modified: head/etc/mtree/BSD.usr.dist head/share/examples/Makefile Modified: head/etc/mtree/BSD.usr.dist

svn commit: r299887 - head/usr.sbin/ypldap

2016-05-15 Thread Marcelo Araujo
Author: araujo Date: Mon May 16 02:44:22 2016 New Revision: 299887 URL: https://svnweb.freebsd.org/changeset/base/299887 Log: Simplify overengineered and buggy code that looked like as if it did some kind of UTF-8 validation, but actually didn't, but instead, for malformed UTF-8 input,

svn commit: r299884 - head/usr.sbin/ypldap

2016-05-15 Thread Marcelo Araujo
Author: araujo Date: Mon May 16 02:35:23 2016 New Revision: 299884 URL: https://svnweb.freebsd.org/changeset/base/299884 Log: When a group contains a non-existent user, make the warning message more helpful by mentioning the group name. Obtained from:OpenBSD (cvs 1.19) Modified:

svn commit: r299878 - head/usr.sbin/kldxref

2016-05-15 Thread Marcelo Araujo
Author: araujo Date: Mon May 16 01:12:56 2016 New Revision: 299878 URL: https://svnweb.freebsd.org/changeset/base/299878 Log: Use NULL instead of 0 for pointers. MFC after:2 weeks. Modified: head/usr.sbin/kldxref/kldxref.c Modified: head/usr.sbin/kldxref/kldxref.c

svn commit: r299877 - head/usr.bin/gprof

2016-05-15 Thread Marcelo Araujo
Author: araujo Date: Mon May 16 01:11:02 2016 New Revision: 299877 URL: https://svnweb.freebsd.org/changeset/base/299877 Log: Use NULL instead of 0 for pointers. MFC after:2 weeks Modified: head/usr.bin/gprof/aout.c head/usr.bin/gprof/arcs.c head/usr.bin/gprof/gprof.c Modified:

svn commit: r299876 - head/sbin/quotacheck

2016-05-15 Thread Marcelo Araujo
Author: araujo Date: Mon May 16 00:36:12 2016 New Revision: 299876 URL: https://svnweb.freebsd.org/changeset/base/299876 Log: For pointers use NULL instead of 0. MFC after:2 weeks. Modified: head/sbin/quotacheck/quotacheck.c Modified: head/sbin/quotacheck/quotacheck.c

svn commit: r299875 - head/sbin/ping6

2016-05-15 Thread Marcelo Araujo
Author: araujo Date: Mon May 16 00:35:39 2016 New Revision: 299875 URL: https://svnweb.freebsd.org/changeset/base/299875 Log: For pointers use NULL instead of 0. MFC after:2 weeks. Modified: head/sbin/ping6/ping6.c Modified: head/sbin/ping6/ping6.c

svn commit: r299874 - head/sbin/init

2016-05-15 Thread Marcelo Araujo
Author: araujo Date: Mon May 16 00:34:48 2016 New Revision: 299874 URL: https://svnweb.freebsd.org/changeset/base/299874 Log: For pointers use NULL instead of 0. MFC after:2 weeks. Modified: head/sbin/init/init.c Modified: head/sbin/init/init.c

svn commit: r299033 - head/sys/dev/hptiop

2016-05-03 Thread Marcelo Araujo
Author: araujo Date: Wed May 4 01:43:07 2016 New Revision: 299033 URL: https://svnweb.freebsd.org/changeset/base/299033 Log: Use imin() macro from sys/libkern.h. MFC after:2 weeks. Modified: head/sys/dev/hptiop/hptiop.c Modified: head/sys/dev/hptiop/hptiop.c

svn commit: r298912 - head/usr.sbin/mountd

2016-05-01 Thread Marcelo Araujo
Author: araujo Date: Mon May 2 01:49:42 2016 New Revision: 298912 URL: https://svnweb.freebsd.org/changeset/base/298912 Log: Use MIN macro from sys/param.h. MFC after:2 weeks. Modified: head/usr.sbin/mountd/mountd.c Modified: head/usr.sbin/mountd/mountd.c

svn commit: r298911 - head/usr.sbin/makefs/ffs

2016-05-01 Thread Marcelo Araujo
Author: araujo Date: Mon May 2 01:47:13 2016 New Revision: 298911 URL: https://svnweb.freebsd.org/changeset/base/298911 Log: Use MIN/MAX macros from sys/param.h. MFC after:2 weeks. Modified: head/usr.sbin/makefs/ffs/mkfs.c Modified: head/usr.sbin/makefs/ffs/mkfs.c

svn commit: r298910 - head/usr.sbin/lpr/lpc

2016-05-01 Thread Marcelo Araujo
Author: araujo Date: Mon May 2 01:45:52 2016 New Revision: 298910 URL: https://svnweb.freebsd.org/changeset/base/298910 Log: Use MIN macro from sys/param.h. MFC after:2 weeks. Modified: head/usr.sbin/lpr/lpc/lpc.c Modified: head/usr.sbin/lpr/lpc/lpc.c

svn commit: r298909 - head/usr.sbin/inetd

2016-05-01 Thread Marcelo Araujo
Author: araujo Date: Mon May 2 01:43:22 2016 New Revision: 298909 URL: https://svnweb.freebsd.org/changeset/base/298909 Log: Use MAX macro from sys/param.h. MFC after:2 weeks. Modified: head/usr.sbin/inetd/inetd.c Modified: head/usr.sbin/inetd/inetd.c

svn commit: r298908 - head/sbin/dumpfs

2016-05-01 Thread Marcelo Araujo
Author: araujo Date: Mon May 2 01:40:31 2016 New Revision: 298908 URL: https://svnweb.freebsd.org/changeset/base/298908 Log: Use MIN macro from sys/param.h. MFC after:2 weeks Modified: head/sbin/dumpfs/dumpfs.c Modified: head/sbin/dumpfs/dumpfs.c

svn commit: r298907 - head/sbin/fsck_ffs

2016-05-01 Thread Marcelo Araujo
Author: araujo Date: Mon May 2 01:28:21 2016 New Revision: 298907 URL: https://svnweb.freebsd.org/changeset/base/298907 Log: Use MIN/MAX macros from sys/param.h. MFC after:2 weeks. Modified: head/sbin/fsck_ffs/fsutil.c head/sbin/fsck_ffs/inode.c head/sbin/fsck_ffs/pass2.c

svn commit: r298906 - head/sbin/newfs

2016-05-01 Thread Marcelo Araujo
Author: araujo Date: Mon May 2 00:45:46 2016 New Revision: 298906 URL: https://svnweb.freebsd.org/changeset/base/298906 Log: Use MIN()/MAX() macros from sys/param.h. Reviewed by: trasz MFC after:2 weeks. Differential Revision:https://reviews.freebsd.org/D6118 Modified:

svn commit: r298905 - head/sbin/growfs

2016-05-01 Thread Marcelo Araujo
Author: araujo Date: Mon May 2 00:44:19 2016 New Revision: 298905 URL: https://svnweb.freebsd.org/changeset/base/298905 Log: Use MIN() macro from sys/param.h. Reviewed by: trasz MFC after:2 weeks Differential Revision:https://reviews.freebsd.org/D6119 Modified:

svn commit: r298687 - head/usr.sbin/config

2016-04-26 Thread Marcelo Araujo
Author: araujo Date: Wed Apr 27 03:06:53 2016 New Revision: 298687 URL: https://svnweb.freebsd.org/changeset/base/298687 Log: For pointers use NULL instead of 0. Reviewed by: rpaulo MFC after:2 weeks. Differential Revision:https://reviews.freebsd.org/D5946 Modified:

svn commit: r298686 - head/usr.bin/top

2016-04-26 Thread Marcelo Araujo
Author: araujo Date: Wed Apr 27 02:44:10 2016 New Revision: 298686 URL: https://svnweb.freebsd.org/changeset/base/298686 Log: Use MIN() macro from sys/param.h. MFC after:2 weeks. Modified: head/usr.bin/top/machine.c Modified: head/usr.bin/top/machine.c

svn commit: r298685 - head/usr.bin/tftp

2016-04-26 Thread Marcelo Araujo
Author: araujo Date: Wed Apr 27 02:34:25 2016 New Revision: 298685 URL: https://svnweb.freebsd.org/changeset/base/298685 Log: Use MIN() macro from sys/param.h. MFC after:2 weeks. Modified: head/usr.bin/tftp/main.c Modified: head/usr.bin/tftp/main.c

svn commit: r298684 - head/usr.bin/systat

2016-04-26 Thread Marcelo Araujo
Author: araujo Date: Wed Apr 27 02:26:31 2016 New Revision: 298684 URL: https://svnweb.freebsd.org/changeset/base/298684 Log: Use macro MIN() from sys/param.h. MFC after:2 weeks. Modified: head/usr.bin/systat/main.c Modified: head/usr.bin/systat/main.c

svn commit: r298682 - head/usr.bin/quota

2016-04-26 Thread Marcelo Araujo
Author: araujo Date: Wed Apr 27 02:13:57 2016 New Revision: 298682 URL: https://svnweb.freebsd.org/changeset/base/298682 Log: Use MIN() macro from sys/param.h. MFC after:2 weeks. Modified: head/usr.bin/quota/quota.c Modified: head/usr.bin/quota/quota.c

svn commit: r298681 - head/sbin/ifconfig

2016-04-26 Thread Marcelo Araujo
Author: araujo Date: Wed Apr 27 02:02:44 2016 New Revision: 298681 URL: https://svnweb.freebsd.org/changeset/base/298681 Log: Use macro MIN() from sys/param.h. MFC after:2 weeks. Modified: head/sbin/ifconfig/sfp.c Modified: head/sbin/ifconfig/sfp.c

Re: HEADS UP: I will revert this. (was Re: svn commit: r298443 - head/usr.bin/stat)

2016-04-25 Thread Marcelo Araujo
nks for the hands up. > > Pedro. > > On 04/23/16 04:23, luke wrote: > >> On Fri, Apr 22, 2016 at 11:43 AM, Marcelo Araujo <ara...@freebsd.org >> <mailto:ara...@freebsd.org>> wrote: >> >> Author: araujo >> Date: Fri Apr 22 03:43:06 201

Re: svn commit: r298443 - head/usr.bin/stat

2016-04-25 Thread Marcelo Araujo
> > On Fri, Apr 22, 2016 at 11:43 AM, Marcelo Araujo < <ara...@freebsd.org> > ara...@freebsd.org> wrote: > >> Author: araujo >> Date: Fri Apr 22 03:43:06 2016 >> New Revision: 298443 >> URL: https://svnweb.freebsd.org/changeset/base/29844

svn commit: r298599 - head/usr.bin/stat

2016-04-25 Thread Marcelo Araujo
Author: araujo Date: Tue Apr 26 00:29:00 2016 New Revision: 298599 URL: https://svnweb.freebsd.org/changeset/base/298599 Log: Use MIN() instead of MAX() as the previous syntax was wrote in a weird and confused way: "prec > 9 ? 9 : prec". Submitted by: pfg, ngie and luke

svn commit: r298454 - head/usr.sbin/bhyve

2016-04-22 Thread Marcelo Araujo
Author: araujo Date: Fri Apr 22 06:25:32 2016 New Revision: 298454 URL: https://svnweb.freebsd.org/changeset/base/298454 Log: Use MIN()/MAX() macros from sys/param.h. Reviewed by: grehan Differential Revision:https://reviews.freebsd.org/D6054 Modified:

svn commit: r298453 - head/usr.bin/xlint/lint1

2016-04-22 Thread Marcelo Araujo
Author: araujo Date: Fri Apr 22 06:23:23 2016 New Revision: 298453 URL: https://svnweb.freebsd.org/changeset/base/298453 Log: Use roundup2() macro from sys/param.h. MFC after:2 weeks. Modified: head/usr.bin/xlint/lint1/decl.c Modified: head/usr.bin/xlint/lint1/decl.c

svn commit: r298447 - head/usr.sbin/pmccontrol

2016-04-21 Thread Marcelo Araujo
Author: araujo Date: Fri Apr 22 05:07:59 2016 New Revision: 298447 URL: https://svnweb.freebsd.org/changeset/base/298447 Log: Use macro MAX() from sys/param.h. MFC after:2 weeks. Modified: head/usr.sbin/pmccontrol/pmccontrol.c Modified: head/usr.sbin/pmccontrol/pmccontrol.c

svn commit: r298445 - head/usr.sbin/moused

2016-04-21 Thread Marcelo Araujo
Author: araujo Date: Fri Apr 22 03:55:33 2016 New Revision: 298445 URL: https://svnweb.freebsd.org/changeset/base/298445 Log: Use macro MAX() from sys/param.h. MFC after:2 weeks. Modified: head/usr.sbin/moused/moused.c Modified: head/usr.sbin/moused/moused.c

svn commit: r298444 - head/usr.bin/vmstat

2016-04-21 Thread Marcelo Araujo
Author: araujo Date: Fri Apr 22 03:46:57 2016 New Revision: 298444 URL: https://svnweb.freebsd.org/changeset/base/298444 Log: Use MIN() macro from sys/param.h. MFC after:2 weeks. Modified: head/usr.bin/vmstat/vmstat.c Modified: head/usr.bin/vmstat/vmstat.c

svn commit: r298443 - head/usr.bin/stat

2016-04-21 Thread Marcelo Araujo
Author: araujo Date: Fri Apr 22 03:43:06 2016 New Revision: 298443 URL: https://svnweb.freebsd.org/changeset/base/298443 Log: Use macro MAX() from sys/param.h. MFC after:2 weeks. Modified: head/usr.bin/stat/stat.c Modified: head/usr.bin/stat/stat.c

svn commit: r298442 - head/usr.bin/netstat

2016-04-21 Thread Marcelo Araujo
Author: araujo Date: Fri Apr 22 03:37:27 2016 New Revision: 298442 URL: https://svnweb.freebsd.org/changeset/base/298442 Log: Use macro MAX() from sys/param.h. MFC after:2 weeks. Modified: head/usr.bin/netstat/sctp.c Modified: head/usr.bin/netstat/sctp.c

svn commit: r298441 - head/sbin/fsck_msdosfs

2016-04-21 Thread Marcelo Araujo
Author: araujo Date: Fri Apr 22 03:32:14 2016 New Revision: 298441 URL: https://svnweb.freebsd.org/changeset/base/298441 Log: Use macro MAX() from sys/param.h. MFC after:2 weeks. Modified: head/sbin/fsck_msdosfs/dir.c Modified: head/sbin/fsck_msdosfs/dir.c

svn commit: r298394 - head/sbin/restore

2016-04-21 Thread Marcelo Araujo
Author: araujo Date: Thu Apr 21 06:24:13 2016 New Revision: 298394 URL: https://svnweb.freebsd.org/changeset/base/298394 Log: Use MIN()/MAX() macros from sys/param.h. MFC after:2 weeks. Modified: head/sbin/restore/dirs.c head/sbin/restore/tape.c Modified: head/sbin/restore/dirs.c

svn commit: r298393 - head/sbin/hastd

2016-04-21 Thread Marcelo Araujo
Author: araujo Date: Thu Apr 21 06:21:33 2016 New Revision: 298393 URL: https://svnweb.freebsd.org/changeset/base/298393 Log: Use MAX() from sys/param.h. MFC after:2 weeks. Modified: head/sbin/hastd/hastd.c Modified: head/sbin/hastd/hastd.c

svn commit: r298391 - head/sbin/fdisk_pc98

2016-04-21 Thread Marcelo Araujo
Author: araujo Date: Thu Apr 21 06:14:30 2016 New Revision: 298391 URL: https://svnweb.freebsd.org/changeset/base/298391 Log: Fix a missing blank space. Modified: head/sbin/fdisk_pc98/fdisk.c Modified: head/sbin/fdisk_pc98/fdisk.c

svn commit: r298390 - head/sbin/fdisk_pc98

2016-04-21 Thread Marcelo Araujo
Author: araujo Date: Thu Apr 21 06:11:24 2016 New Revision: 298390 URL: https://svnweb.freebsd.org/changeset/base/298390 Log: Simplify the get_type() function. Submitted by: bde Discussed with: bde, jhb and pfg MFC after:2 weeks. Modified: head/sbin/fdisk_pc98/fdisk.c

svn commit: r298327 - head/usr.bin/tftp

2016-04-19 Thread Marcelo Araujo
Author: araujo Date: Wed Apr 20 01:38:54 2016 New Revision: 298327 URL: https://svnweb.freebsd.org/changeset/base/298327 Log: Partially revert the change on r298325 where there is an (-1) casted to a pointer. Submitted by: pfg MFC after:2 weeks. Modified:

Re: svn commit: r298320 - head/sbin/sunlabel

2016-04-19 Thread Marcelo Araujo
2016-04-20 9:24 GMT+08:00 Pedro Giffuni <p...@freebsd.org>: > > > On 04/19/16 20:05, Marcelo Araujo wrote: > >> Author: araujo >> Date: Wed Apr 20 01:05:54 2016 >> New Revision: 298320 >> URL: https://svnweb.freebsd.org/changeset/base/298320 >

svn commit: r298326 - head/sbin/sunlabel

2016-04-19 Thread Marcelo Araujo
Author: araujo Date: Wed Apr 20 01:35:09 2016 New Revision: 298326 URL: https://svnweb.freebsd.org/changeset/base/298326 Log: Re-ident lines. Requested by: pfg MFC after:2 weeks. Modified: head/sbin/sunlabel/sunlabel.c Modified: head/sbin/sunlabel/sunlabel.c

svn commit: r298325 - head/usr.bin/tftp

2016-04-19 Thread Marcelo Araujo
Author: araujo Date: Wed Apr 20 01:28:31 2016 New Revision: 298325 URL: https://svnweb.freebsd.org/changeset/base/298325 Log: Use NULL instead of 0 for pointers. Small cosmetic change. MFC after:2 weeks. Modified: head/usr.bin/tftp/main.c Modified: head/usr.bin/tftp/main.c

svn commit: r298324 - head/usr.bin/systat

2016-04-19 Thread Marcelo Araujo
Author: araujo Date: Wed Apr 20 01:26:03 2016 New Revision: 298324 URL: https://svnweb.freebsd.org/changeset/base/298324 Log: Use NULL instead of 0 for pointers. gethostbyname(3) will return NULL for error status. MFC after:2 weeks. Modified: head/usr.bin/systat/cmds.c

svn commit: r298320 - head/sbin/sunlabel

2016-04-19 Thread Marcelo Araujo
Author: araujo Date: Wed Apr 20 01:05:54 2016 New Revision: 298320 URL: https://svnweb.freebsd.org/changeset/base/298320 Log: Use nitems() from sys/param.h. MFC after:2 weeks. Modified: head/sbin/sunlabel/sunlabel.c Modified: head/sbin/sunlabel/sunlabel.c

svn commit: r298317 - head/sbin/hastd

2016-04-19 Thread Marcelo Araujo
Author: araujo Date: Wed Apr 20 00:55:35 2016 New Revision: 298317 URL: https://svnweb.freebsd.org/changeset/base/298317 Log: Use nitems() from sys/param.h. MFC after:2 weeks. Modified: head/sbin/hastd/subr.c Modified: head/sbin/hastd/subr.c

Re: svn commit: r298247 - head/sbin/fdisk_pc98

2016-04-19 Thread Marcelo Araujo
2016-04-20 0:16 GMT+08:00 John Baldwin <j...@freebsd.org>: > On Tuesday, April 19, 2016 04:46:13 AM Marcelo Araujo wrote: > > Author: araujo > > Date: Tue Apr 19 04:46:13 2016 > > New Revision: 298247 > > URL: https://svnweb.freebsd.org/changeset/base/298247 &g

svn commit: r298262 - head/sbin/camcontrol

2016-04-19 Thread Marcelo Araujo
Author: araujo Date: Tue Apr 19 11:12:57 2016 New Revision: 298262 URL: https://svnweb.freebsd.org/changeset/base/298262 Log: Use nitems() from sys/param.h. MFC after:2 weeks. Modified: head/sbin/camcontrol/progress.c Modified: head/sbin/camcontrol/progress.c

svn commit: r298261 - head/sbin/setkey

2016-04-19 Thread Marcelo Araujo
Author: araujo Date: Tue Apr 19 09:43:51 2016 New Revision: 298261 URL: https://svnweb.freebsd.org/changeset/base/298261 Log: Use nitems() from sys/param.h. MFC after:2 weeks. Modified: head/sbin/setkey/test-policy.c Modified: head/sbin/setkey/test-policy.c

svn commit: r298256 - head/sbin/ping6

2016-04-19 Thread Marcelo Araujo
Author: araujo Date: Tue Apr 19 06:34:31 2016 New Revision: 298256 URL: https://svnweb.freebsd.org/changeset/base/298256 Log: Use nitems() from sys/param.h. MFC after:2 weeks. Modified: head/sbin/ping6/ping6.c Modified: head/sbin/ping6/ping6.c

svn commit: r298255 - head/sbin/pfctl

2016-04-19 Thread Marcelo Araujo
Author: araujo Date: Tue Apr 19 06:32:35 2016 New Revision: 298255 URL: https://svnweb.freebsd.org/changeset/base/298255 Log: Use nitems() from sys/param.h. MFC after:2 weeks. Modified: head/sbin/pfctl/pfctl_parser.c Modified: head/sbin/pfctl/pfctl_parser.c

Re: svn commit: r298244 - head/sbin/dumpon

2016-04-18 Thread Marcelo Araujo
2016-04-19 12:58 GMT+08:00 Pedro Giffuni <p...@freebsd.org>: > > > On 04/18/16 23:28, Marcelo Araujo wrote: > >> Author: araujo >> Date: Tue Apr 19 04:28:25 2016 >> New Revision: 298244 >> URL: https://svnweb.freebsd.org/changeset/base/298244 >>

svn commit: r298250 - in head/sbin: newfs_msdos newfs_nandfs

2016-04-18 Thread Marcelo Araujo
Author: araujo Date: Tue Apr 19 04:57:57 2016 New Revision: 298250 URL: https://svnweb.freebsd.org/changeset/base/298250 Log: Use nitems() from sys/param.h. MFC after:2 weeks. Modified: head/sbin/newfs_msdos/mkfs_msdos.c head/sbin/newfs_nandfs/newfs_nandfs.c Modified:

svn commit: r298249 - head/sbin/kldload

2016-04-18 Thread Marcelo Araujo
Author: araujo Date: Tue Apr 19 04:52:51 2016 New Revision: 298249 URL: https://svnweb.freebsd.org/changeset/base/298249 Log: Use nitems() from sys/param.h. MFC after:2 weeks. Modified: head/sbin/kldload/kldload.c Modified: head/sbin/kldload/kldload.c

svn commit: r298248 - head/sbin/kldconfig

2016-04-18 Thread Marcelo Araujo
Author: araujo Date: Tue Apr 19 04:52:13 2016 New Revision: 298248 URL: https://svnweb.freebsd.org/changeset/base/298248 Log: Use nitems() from sys/param.h. MFC after:2 weeks. Modified: head/sbin/kldconfig/kldconfig.c Modified: head/sbin/kldconfig/kldconfig.c

svn commit: r298247 - head/sbin/fdisk_pc98

2016-04-18 Thread Marcelo Araujo
Author: araujo Date: Tue Apr 19 04:46:13 2016 New Revision: 298247 URL: https://svnweb.freebsd.org/changeset/base/298247 Log: Remove redundant parenthesis. Submitted by: pfg MFC after:2 weeks. Modified: head/sbin/fdisk_pc98/fdisk.c Modified: head/sbin/fdisk_pc98/fdisk.c

svn commit: r298246 - head/sbin/ifconfig

2016-04-18 Thread Marcelo Araujo
Author: araujo Date: Tue Apr 19 04:42:34 2016 New Revision: 298246 URL: https://svnweb.freebsd.org/changeset/base/298246 Log: Use nitems() from sys/param.h. MFC after:2 weeks. Modified: head/sbin/ifconfig/ifbridge.c head/sbin/ifconfig/iflagg.c Modified:

svn commit: r298245 - head/sbin/fdisk_pc98

2016-04-18 Thread Marcelo Araujo
Author: araujo Date: Tue Apr 19 04:37:17 2016 New Revision: 298245 URL: https://svnweb.freebsd.org/changeset/base/298245 Log: Use nitems() from sys/param.h. MFC after:2 weeks. Modified: head/sbin/fdisk_pc98/fdisk.c Modified: head/sbin/fdisk_pc98/fdisk.c

svn commit: r298244 - head/sbin/dumpon

2016-04-18 Thread Marcelo Araujo
Author: araujo Date: Tue Apr 19 04:28:25 2016 New Revision: 298244 URL: https://svnweb.freebsd.org/changeset/base/298244 Log: Use nitems() instead of sizeof(name) / sizeof(*name). MFC after:2 weeks. Modified: head/sbin/dumpon/dumpon.c Modified: head/sbin/dumpon/dumpon.c

Re: svn commit: r298241 - head/usr.bin/lex

2016-04-18 Thread Marcelo Araujo
Ok, gonna revert this commit! Thanks, On Apr 19, 2016 10:15 AM, "Pedro Giffuni" <p...@freebsd.org> wrote: > > > On 04/18/16 21:05, Marcelo Araujo wrote: > >> Author: araujo >> Date: Tue Apr 19 02:05:32 2016 >> New Revision: 298241 >> U

svn commit: r298241 - head/usr.bin/lex

2016-04-18 Thread Marcelo Araujo
Author: araujo Date: Tue Apr 19 02:05:32 2016 New Revision: 298241 URL: https://svnweb.freebsd.org/changeset/base/298241 Log: Use NULL instead of 0 for pointers. realloc will return NULL in case it cannot allocate memory. MFC after:2 weeks. Modified:

svn commit: r298240 - head/sbin/restore

2016-04-18 Thread Marcelo Araujo
Author: araujo Date: Tue Apr 19 02:00:48 2016 New Revision: 298240 URL: https://svnweb.freebsd.org/changeset/base/298240 Log: malloc will return NULL if it cannot allocate memory. MFC after:2 weeks. Modified: head/sbin/restore/dirs.c Modified: head/sbin/restore/dirs.c

svn commit: r298239 - head/sbin/quotacheck

2016-04-18 Thread Marcelo Araujo
Author: araujo Date: Tue Apr 19 01:59:26 2016 New Revision: 298239 URL: https://svnweb.freebsd.org/changeset/base/298239 Log: getfsent(3) will return NULL on EOF or error. MFC after:2 weeks. Modified: head/sbin/quotacheck/preen.c Modified: head/sbin/quotacheck/preen.c

svn commit: r298238 - head/sbin/ping6

2016-04-18 Thread Marcelo Araujo
Author: araujo Date: Tue Apr 19 01:57:56 2016 New Revision: 298238 URL: https://svnweb.freebsd.org/changeset/base/298238 Log: Use NULL instead of 0 for pointers. malloc will return NULL if it cannot allocate memory. MFC after:2 weeks. Modified: head/sbin/ping6/ping6.c

svn commit: r298236 - head/sbin/init

2016-04-18 Thread Marcelo Araujo
Author: araujo Date: Tue Apr 19 01:25:35 2016 New Revision: 298236 URL: https://svnweb.freebsd.org/changeset/base/298236 Log: Use NULL instead of 0 for pointers. dbopen(3) will returns a NULL on error. MFC after:2 weeks. Modified: head/sbin/init/init.c Modified:

svn commit: r298235 - head/sbin/dump

2016-04-18 Thread Marcelo Araujo
Author: araujo Date: Tue Apr 19 01:01:22 2016 New Revision: 298235 URL: https://svnweb.freebsd.org/changeset/base/298235 Log: Use NULL instead of 0. malloc will return NULL in case it cannot allocate memory. MFC after:2 weeks. Modified: head/sbin/dump/traverse.c Modified:

svn commit: r298234 - head/sbin/atm/atmconfig

2016-04-18 Thread Marcelo Araujo
Author: araujo Date: Tue Apr 19 00:59:15 2016 New Revision: 298234 URL: https://svnweb.freebsd.org/changeset/base/298234 Log: Use NULL for pointers instead of 0. MFC after:2 weeks. Modified: head/sbin/atm/atmconfig/natm.c Modified: head/sbin/atm/atmconfig/natm.c

svn commit: r298233 - head/bin/ps

2016-04-18 Thread Marcelo Araujo
Author: araujo Date: Tue Apr 19 00:40:43 2016 New Revision: 298233 URL: https://svnweb.freebsd.org/changeset/base/298233 Log: Use NULL instead of 0 for pointers. kvm_open(3) will return NULL when it cannot access kernel virtual memory. MFC after:2 weeks. Modified:

svn commit: r298232 - head/bin/test

2016-04-18 Thread Marcelo Araujo
Author: araujo Date: Tue Apr 19 00:38:07 2016 New Revision: 298232 URL: https://svnweb.freebsd.org/changeset/base/298232 Log: Use NULL for pointers instead of 0. MFC after:2 weeks. Modified: head/bin/test/test.c Modified: head/bin/test/test.c

svn commit: r298209 - head/usr.bin/finger

2016-04-18 Thread Marcelo Araujo
Author: araujo Date: Mon Apr 18 14:44:01 2016 New Revision: 298209 URL: https://svnweb.freebsd.org/changeset/base/298209 Log: Use NULL instead of 0 for pointers. strchr(3) will return NULL if the character does not appear in the string. MFC after:2 weeks. Modified:

svn commit: r298206 - head/sbin/ifconfig

2016-04-18 Thread Marcelo Araujo
Author: araujo Date: Mon Apr 18 14:12:42 2016 New Revision: 298206 URL: https://svnweb.freebsd.org/changeset/base/298206 Log: User NULL instead of 0 for pointers. gethostbyname(3) will return NULL in case of an error. MFC after:2 weeks. Modified: head/sbin/ifconfig/af_inet.c

svn commit: r298205 - in head/sbin: growfs newfs restore

2016-04-18 Thread Marcelo Araujo
Author: araujo Date: Mon Apr 18 14:08:35 2016 New Revision: 298205 URL: https://svnweb.freebsd.org/changeset/base/298205 Log: Use NULL instead of 0 for pointers. strchr(3) will return NULL if the character does not appear in the string. MFC after:2 weeks. Modified:

svn commit: r298195 - head/sbin/fsdb

2016-04-18 Thread Marcelo Araujo
Author: araujo Date: Mon Apr 18 07:47:26 2016 New Revision: 298195 URL: https://svnweb.freebsd.org/changeset/base/298195 Log: Use NULL instead of 0 for pointers. malloc will return NULL if it cannot allocate memory. MFC after:2 weeks. Modified: head/sbin/fsdb/fsdbutil.c

svn commit: r298194 - head/sbin/fsck

2016-04-18 Thread Marcelo Araujo
Author: araujo Date: Mon Apr 18 07:44:53 2016 New Revision: 298194 URL: https://svnweb.freebsd.org/changeset/base/298194 Log: strchr(3) will return NULL if it cannot find the character in the string. getfsent(3) will return NULL on EOF or error. MFC after:2 weeks. Modified:

svn commit: r298193 - head/sbin/bsdlabel

2016-04-18 Thread Marcelo Araujo
Author: araujo Date: Mon Apr 18 07:40:36 2016 New Revision: 298193 URL: https://svnweb.freebsd.org/changeset/base/298193 Log: Use NULL instead of 0 for pointers. strchr(3) will return NULL if the character does not appear in the string. MFC after:2 weeks. Modified:

svn commit: r298191 - head/usr.bin/talk

2016-04-18 Thread Marcelo Araujo
Author: araujo Date: Mon Apr 18 07:14:01 2016 New Revision: 298191 URL: https://svnweb.freebsd.org/changeset/base/298191 Log: User NULL instead of 0 for pointers. getservent(3) returns NULL on EOF or error. MFC after:2 weeks. Modified: head/usr.bin/talk/get_addrs.c Modified:

svn commit: r298190 - head/usr.bin/m4

2016-04-18 Thread Marcelo Araujo
Author: araujo Date: Mon Apr 18 07:09:34 2016 New Revision: 298190 URL: https://svnweb.freebsd.org/changeset/base/298190 Log: Use NULL instead of 0 for pointers. fopen(3) will return NULL in case it cannot open the STREAM. MFC after:2 weeks. Modified: head/usr.bin/m4/gnum4.c

svn commit: r298189 - head/usr.bin/find

2016-04-18 Thread Marcelo Araujo
Author: araujo Date: Mon Apr 18 07:05:18 2016 New Revision: 298189 URL: https://svnweb.freebsd.org/changeset/base/298189 Log: Use NULL instead of 0 for pointers. MFC after:2 weeks. Modified: head/usr.bin/find/function.c Modified: head/usr.bin/find/function.c

svn commit: r298184 - head/usr.bin/whereis

2016-04-18 Thread Marcelo Araujo
Author: araujo Date: Mon Apr 18 06:12:00 2016 New Revision: 298184 URL: https://svnweb.freebsd.org/changeset/base/298184 Log: Use NULL instead of 0 for pointers. realloc will return NULL if it cannot allocate memory. MFC after:2 weeks. Modified: head/usr.bin/whereis/whereis.c

svn commit: r298183 - head/usr.bin/rpcgen

2016-04-18 Thread Marcelo Araujo
Author: araujo Date: Mon Apr 18 06:02:26 2016 New Revision: 298183 URL: https://svnweb.freebsd.org/changeset/base/298183 Log: Use NULL for pointers. strrchr(3) will return NULL if the character does not appears in the string. MFC after:2 weeks. Modified:

svn commit: r298182 - head/usr.bin/netstat

2016-04-17 Thread Marcelo Araujo
Author: araujo Date: Mon Apr 18 05:46:18 2016 New Revision: 298182 URL: https://svnweb.freebsd.org/changeset/base/298182 Log: Use NULL instead of 0 for pointers. Also malloc will return NULL if it cannot allocate memory. MFC after:2 weeks. Modified: head/usr.bin/netstat/inet.c

svn commit: r298181 - head/usr.bin/login

2016-04-17 Thread Marcelo Araujo
Author: araujo Date: Mon Apr 18 05:26:32 2016 New Revision: 298181 URL: https://svnweb.freebsd.org/changeset/base/298181 Log: Use NULL instead of 0. strtok(3) will return NULL when no more tokens remain. MFC after:2 weeks. Modified: head/usr.bin/login/login_fbtab.c Modified:

svn commit: r298180 - head/usr.sbin/makefs/ffs

2016-04-17 Thread Marcelo Araujo
Author: araujo Date: Mon Apr 18 05:19:45 2016 New Revision: 298180 URL: https://svnweb.freebsd.org/changeset/base/298180 Log: The malloc will return NULL if it can't allocate memory. MFC after:2 weeks. Modified: head/usr.sbin/makefs/ffs/mkfs.c Modified:

svn commit: r298177 - head/usr.sbin/ypldap

2016-04-17 Thread Marcelo Araujo
Author: araujo Date: Mon Apr 18 03:44:42 2016 New Revision: 298177 URL: https://svnweb.freebsd.org/changeset/base/298177 Log: Use nitems instead of 'sizeof(mapnames) / sizeof(mapnames[0]'. Modified: head/usr.sbin/ypldap/yp.c Modified: head/usr.sbin/ypldap/yp.c

Re: svn commit: r298033 - head/usr.sbin/tzsetup

2016-04-14 Thread Marcelo Araujo
2016-04-15 12:10 GMT+08:00 Marcelo Araujo <ara...@freebsd.org>: > Author: araujo > Date: Fri Apr 15 04:10:47 2016 > New Revision: 298033 > URL: https://svnweb.freebsd.org/changeset/base/298033 > > Log: > Use NULL instead of 0 for pointers. > > fgetln(3) will

svn commit: r298033 - head/usr.sbin/tzsetup

2016-04-14 Thread Marcelo Araujo
Author: araujo Date: Fri Apr 15 04:10:47 2016 New Revision: 298033 URL: https://svnweb.freebsd.org/changeset/base/298033 Log: Use NULL instead of 0 for pointers. fgetln(3) will returns NULL if cannot get a line from a stream. strsep(3) it will returns NULL if the end of the string was

svn commit: r298032 - head/usr.sbin/ppp

2016-04-14 Thread Marcelo Araujo
Author: araujo Date: Fri Apr 15 03:50:33 2016 New Revision: 298032 URL: https://svnweb.freebsd.org/changeset/base/298032 Log: Use NULL instead of 0 for pointers. getenv(3) returns NULL if the variable name is not in the current environment. getservent(3) returns NULL on EOF or error

svn commit: r298028 - head/usr.sbin/fmtree

2016-04-14 Thread Marcelo Araujo
Author: araujo Date: Fri Apr 15 03:38:58 2016 New Revision: 298028 URL: https://svnweb.freebsd.org/changeset/base/298028 Log: Use NULL instead of 0 for pointers. fopen(3) returns NULL in case it can't open the STREAM. fgetln(3) returns NULL if it can't get a line from a STREAM. malloc

svn commit: r298021 - head/usr.sbin/fdformat

2016-04-14 Thread Marcelo Araujo
Author: araujo Date: Fri Apr 15 02:14:11 2016 New Revision: 298021 URL: https://svnweb.freebsd.org/changeset/base/298021 Log: Use NULL instead of 0 for pointers and memory allocation. malloc and realloc will return NULL pointer if it can't alloc memory. MFC after:4 weeks Modified:

svn commit: r298018 - head/lib/libypclnt

2016-04-14 Thread Marcelo Araujo
Author: araujo Date: Fri Apr 15 00:47:30 2016 New Revision: 298018 URL: https://svnweb.freebsd.org/changeset/base/298018 Log: Initialize pointer with NULL instead of 0. Submitted by: pfg Modified: head/lib/libypclnt/ypclnt_passwd.c Modified: head/lib/libypclnt/ypclnt_passwd.c

svn commit: r297965 - head/usr.sbin/lmcconfig

2016-04-14 Thread Marcelo Araujo
Author: araujo Date: Thu Apr 14 12:53:38 2016 New Revision: 297965 URL: https://svnweb.freebsd.org/changeset/base/297965 Log: Use NULL instead of 0 for pointers. fopen(3) will return NULL in case it can't open the STREAM. Modified: head/usr.sbin/lmcconfig/lmcconfig.c Modified:

svn commit: r297964 - head/usr.sbin/fstyp

2016-04-14 Thread Marcelo Araujo
Author: araujo Date: Thu Apr 14 12:51:06 2016 New Revision: 297964 URL: https://svnweb.freebsd.org/changeset/base/297964 Log: Use NULL instead of 0 for pointers. The malloc will return a pointer to the allocated memory if successful, otherwise a NULL pointer is returned. Modified:

svn commit: r297962 - head/usr.sbin/fdread

2016-04-14 Thread Marcelo Araujo
Author: araujo Date: Thu Apr 14 12:46:46 2016 New Revision: 297962 URL: https://svnweb.freebsd.org/changeset/base/297962 Log: Use NULL instead of 0 for pointers. The strchr(3) returns a NULL if the character does not appears in the string. The malloc will return NULL if cannot allocate

svn commit: r297961 - head/usr.sbin/rmt

2016-04-14 Thread Marcelo Araujo
Author: araujo Date: Thu Apr 14 12:25:00 2016 New Revision: 297961 URL: https://svnweb.freebsd.org/changeset/base/297961 Log: Use NULL instead of 0 for pointers. fopen(3) will return NULL in case it can't open the STREAM. The malloc will return a pointer to the allocated memory if

svn commit: r297959 - head/usr.sbin/kgmon

2016-04-14 Thread Marcelo Araujo
Author: araujo Date: Thu Apr 14 11:41:30 2016 New Revision: 297959 URL: https://svnweb.freebsd.org/changeset/base/297959 Log: Use NULL instead of 0 for pointers. fopen(3) returns a FILE pointer, otherwise NULL is returned. MFC after:2 weeks Modified: head/usr.sbin/kgmon/kgmon.c

svn commit: r297907 - head/usr.sbin/ypldap

2016-04-12 Thread Marcelo Araujo
Author: araujo Date: Wed Apr 13 03:36:34 2016 New Revision: 297907 URL: https://svnweb.freebsd.org/changeset/base/297907 Log: Convert ypldap_addr list to a tailq(queue(3)). Obtained from:OpenBSD r1.11, r1.17 and r1.36 Modified: head/usr.sbin/ypldap/ldapclient.c

svn commit: r297903 - head/usr.sbin/ypldap

2016-04-12 Thread Marcelo Araujo
Author: araujo Date: Wed Apr 13 01:54:33 2016 New Revision: 297903 URL: https://svnweb.freebsd.org/changeset/base/297903 Log: Apply revisions 1.4 and 1.5 from ldapd's ber.c to ypldap's copy, so it can deal with messages that haven't been fully read from the server yet. Obtained from:

<    1   2   3   4   5   >