Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/usr.bin/xlint



In article <20210326203108.3A4E5FA96%cvs.NetBSD.org@localhost>,
Roland Illig <source-changes-d%NetBSD.org@localhost> wrote:
>-=-=-=-=-=-
>
>Module Name:	src
>Committed By:	rillig
>Date:		Fri Mar 26 20:31:07 UTC 2021
>
>Modified Files:
>	src/usr.bin/xlint/common: tyname.c
>	src/usr.bin/xlint/lint1: cgram.y decl.c err.c func.c init.c lex.c
>	    main1.c mem1.c tree.c
>	src/usr.bin/xlint/lint2: chk.c emit2.c hash.c main2.c read.c
>	src/usr.bin/xlint/xlint: xlint.c
>
>Log Message:
>lint: in malloc calls, use 'sizeof *ptr' instead of 'sizeof(type)'

style says "sizeof(" not "sizeof "

    * Casts and sizeof's are not followed by a space.

christos



Home | Main Index | Thread Index | Old Index