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
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
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
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
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
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,
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:
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
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:
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
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
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
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
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
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
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
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
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
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
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:
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:
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:
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
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
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
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
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
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
>
> 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
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
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:
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
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
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
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
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
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
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
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
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
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
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
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:
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
>
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
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
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
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
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
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
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
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
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
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
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
>>
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:
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
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
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
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:
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
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
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
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:
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
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
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
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:
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:
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
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:
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
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:
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
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:
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
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:
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:
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:
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
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
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
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:
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
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:
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:
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
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
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
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
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
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:
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
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:
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:
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
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
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
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
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:
201 - 300 of 463 matches
Mail list logo